summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorIngrid Halama [iha] <Ingrid.Halama@oracle.com>2011-02-07 19:03:22 +0100
committerIngrid Halama [iha] <Ingrid.Halama@oracle.com>2011-02-07 19:03:22 +0100
commit0a7d5e540df38bbc931ec813881e8632075dec91 (patch)
tree22829d89cfb748fc65e6043decf98d7e499fb7cc /chart2
parenta205833343811090811dea89801533ae41f78b0e (diff)
chart52: #28670# make the legend within charts resizeable - part 9
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/VLegend.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index 07a4e0437998..33e1d1f26aa4 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -446,10 +446,11 @@ awt::Size lcl_placeLegendEntries(
DrawModelWrapper::removeShape( aTextShapes[nEntry] );
aTextShapes.pop_back();
}
- if( nEntry < static_cast<sal_Int32>(rEntries.size()) )
+ if( nEntry < nNumberOfEntries )
{
DrawModelWrapper::removeShape( rEntries[ nEntry ].aSymbol );
rEntries.pop_back();
+ nNumberOfEntries--;
}
}
nSumHeight -= aRowHeights[nR];