fix coverity#983381

Change-Id: Ief19052360760977f86b8aa0aa066c9d2b741c98
This commit is contained in:
Caolán McNamara
2014-03-22 19:10:26 +00:00
parent 691cbc6425
commit 4fecc8cb22

View File

@@ -724,7 +724,7 @@ bool SwPaM::HasReadonlySel( bool bFormView, bool bAnnotationMode ) const
// exactly at the end.
SwPosition aPrevChar(*GetPoint());
aPrevChar.nContent--;
sw::mark::IFieldmark* pFieldmark = pMarksAccess->getFieldmarkFor(aPrevChar);
pFieldmark = pMarksAccess->getFieldmarkFor(aPrevChar);
if (pFieldmark && pFieldmark->GetMarkEnd() == *GetPoint())
bRet = true;
}