From 9665911b79b75a82d1c287826087c717b8158976 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 10 Feb 2015 16:30:57 +0100 Subject: coverity#1267654: sw: logically dead code in SwCrsrShell::GoNextCell() IsTableMode() should imply cursor is in table. Change-Id: Ibb94911430f947038abba2ebe013fc82fae7dd54 --- sw/source/core/crsr/trvltbl.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'sw') 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(); -- cgit