summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index f5f474f05541..1a76791f8e3c 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -5359,10 +5359,10 @@ ErrCode SwWW8ImplReader::CoreLoad(WW8Glossary const *pGloss)
for( size_t nHintPos = 0; pHints && nHintPos < pHints->Count(); ++nHintPos)
{
const SwTextAttr *pHt = pHints->Get(nHintPos);
+ if (pHt->Which() != RES_TXTATR_FLYCNT)
+ continue;
const sal_Int32 st = pHt->GetStart();
- if( pHt
- && pHt->Which() == RES_TXTATR_FLYCNT
- && (st >= (*ppBkmk)->GetMarkStart().nContent.GetIndex()) )
+ if (st >= (*ppBkmk)->GetMarkStart().nContent.GetIndex())
{
SwFrameFormat* pFrameFormat = pHt->GetFlyCnt().GetFrameFormat();
vecFrameFormat.push_back(pFrameFormat);