summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2011-03-03 12:06:51 +0100
committerIngrid Halama <iha@openoffice.org>2011-03-03 12:06:51 +0100
commit15e9295ad80329dfa018a79c1d054479d553171b (patch)
treec9c24aee8d07e4aca7115a47a34a8963811b83c4 /chart2
parent7f7df1e785ec5e66d34e5179aa7b1c3447fac072 (diff)
chart55: #117185# legend entries get lost after moving the legend
Diffstat (limited to 'chart2')
-rwxr-xr-x[-rw-r--r--]chart2/source/view/main/VLegend.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index 33e1d1f26aa4..12548e888fec 100644..100755
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -918,8 +918,8 @@ void VLegend::createShapes(
RelativeSize aRelativeSize;
if ((xLegendProp->getPropertyValue( C2U( "RelativeSize" )) >>= aRelativeSize))
{
- aLegendSize.Width = aRelativeSize.Primary * rPageSize.Width;
- aLegendSize.Height = aRelativeSize.Secondary * rPageSize.Height;
+ aLegendSize.Width = ::rtl::math::approxCeil( aRelativeSize.Primary * rPageSize.Width );
+ aLegendSize.Height = ::rtl::math::approxCeil( aRelativeSize.Secondary * rPageSize.Height );
}
else
eExpansion = ::com::sun::star::chart::ChartLegendExpansion_HIGH;