summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-29 15:08:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-29 18:12:05 +0000
commit44aa2dc9765f7c76997fb0a66877c3a4f97818d4 (patch)
treed73f5bbc76cc2adc34075c06a77951e227ac0173 /sc
parent245dddf171ae384ee8ec551d362db431f164c738 (diff)
coverity#704282 Logically dead code
Change-Id: Ife5b038c56a3609ac66fee67abf2e3f2cd48daee
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabview3.cxx10
1 files changed, 2 insertions, 8 deletions
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
}
}