summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-14 13:50:02 +0200
committerNoel Grandin <noel@peralex.com>2014-02-17 14:04:30 +0200
commite5810bb2bb7f6a28fe95189edd939a3bbccee842 (patch)
treea24b8ee7d0381abb9d6e0c03d4eecda03cea0ab1 /sw
parentec40733b5f5715a566dcbc2d79339edbc304b2f0 (diff)
cid#705925 dereference before null check
Change-Id: Ib4369e00f4d6ce2beca9e2ec51e3fb52677d2fe6
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 777a1d4b785c..3d6aa4f16fa4 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -2822,7 +2822,7 @@ void SwTabFrmPainter::Insert( SwLineEntry& rNew, bool bHori )
}
SwLineEntrySetIter aIter = pLineSet->begin();
- while ( pLineSet && aIter != pLineSet->end() && rNew.mnStartPos < rNew.mnEndPos )
+ while ( aIter != pLineSet->end() && rNew.mnStartPos < rNew.mnEndPos )
{
const SwLineEntry& rOld = *aIter;
const SwLineEntry::OverlapType nOverlapType = rOld.Overlaps( rNew );