From 44aa2dc9765f7c76997fb0a66877c3a4f97818d4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 29 Mar 2014 15:08:47 +0000 Subject: coverity#704282 Logically dead code Change-Id: Ife5b038c56a3609ac66fee67abf2e3f2cd48daee --- sc/source/ui/view/tabview3.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 61d4520355bb..6bf03238df86 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2020,12 +2020,8 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO if ( eMode == SC_UPDATE_ALL && nRow2 >= MAXROW ) aEnd.Y() = pGridWin[i]->GetOutputSizePixel().Height(); - bool bShowChanges = true; //! ... - if (bShowChanges) - { - aStart.X() -= nLayoutSign; // include change marks - aStart.Y() -= 1; - } + aStart.X() -= nLayoutSign; // include change marks + aStart.Y() -= 1; bool bMarkClipped = aViewData.GetOptions().GetOption( VOPT_CLIPMARKS ); if (bMarkClipped) @@ -2038,8 +2034,6 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO { long nMarkPixel = (long)( SC_CLIPMARK_SIZE * aViewData.GetPPTX() ); aStart.X() -= nMarkPixel * nLayoutSign; - if (!bShowChanges) - aStart.X() -= nLayoutSign; // cell grid } } -- cgit