diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 15:13:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 15:31:19 +0200 |
commit | a6b42f9138acf3edb775ba03fc59406186d73808 (patch) | |
tree | ada252d436bd87fa25eb75b85b364627726e88f6 /chart2 | |
parent | 0411b3477f5ec941710933bf2f242d965ae3fe1e (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: I96ab1c0683eadef1f7012b346705450e69ca5a65
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/VLegend.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx index d2931654f9d3..584ea6bd9877 100644 --- a/chart2/source/view/main/VLegend.cxx +++ b/chart2/source/view/main/VLegend.cxx @@ -516,10 +516,7 @@ awt::Size lcl_placeLegendEntries( nTextLineHeight = lcl_getTextLineHeight( aRowHeights, nNumberOfRows, fViewFontSize ); } - sal_Int32 nCurrentXPos = nXPadding; - sal_Int32 nCurrentYPos = nYPadding; - if( !bSymbolsLeftSide ) - nCurrentXPos = -nXPadding; + sal_Int32 nCurrentXPos = bSymbolsLeftSide ? nXPadding : -nXPadding; // place entries into column and rows sal_Int32 nMaxYPos = 0; @@ -527,7 +524,7 @@ awt::Size lcl_placeLegendEntries( sal_Int32 nColumn = 0; for( nColumn = 0; nColumn < nNumberOfColumns; ++nColumn ) { - nCurrentYPos = nYPadding; + sal_Int32 nCurrentYPos = nYPadding; for( nRow = 0; nRow < nNumberOfRows; ++nRow ) { sal_Int32 nEntry = (nColumn + nRow * nNumberOfColumns); |