summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-02-10 16:30:57 +0100
committerMichael Stahl <mstahl@redhat.com>2015-02-10 17:02:28 +0100
commit9665911b79b75a82d1c287826087c717b8158976 (patch)
tree39bc59a01c6844f208f3f941b03e66d14c4e9531 /sw
parente7b9306d8b48dda16c33be84cc926fa0fd9aeac0 (diff)
coverity#1267654: sw: logically dead code in SwCrsrShell::GoNextCell()
IsTableMode() should imply cursor is in table. Change-Id: Ibb94911430f947038abba2ebe013fc82fae7dd54
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/trvltbl.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx
index fd0d20c55b4a..4b46c9813f01 100644
--- a/sw/source/core/crsr/trvltbl.cxx
+++ b/sw/source/core/crsr/trvltbl.cxx
@@ -65,8 +65,6 @@ bool SwCrsrShell::GoNextCell( bool bAppendLine )
if ( !pTblNd )
pTblNd = IsCrsrInTbl();
assert (pTblNd);
- if (!pTblNd)
- return false;
pTableBox = & pTableBox->FindEndOfRowSpan( pTblNd->GetTable(),
(sal_uInt16)(pTableBox->getRowSpan() + pCrsr->GetCrsrRowSpanOffset() ) );
pTableBoxStartNode = pTableBox->GetSttNd();