diff options
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); |