chart52: #28670# make the legend within charts resizeable - part 9

This commit is contained in:
Ingrid Halama [iha] 2011-02-07 19:03:22 +01:00
parent a205833343
commit 0a7d5e540d

View file

@ -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];