diff options
author | Ingrid Halama <iha@openoffice.org> | 2011-03-03 12:06:51 +0100 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2011-03-03 12:06:51 +0100 |
commit | 203e961dd4d845b5a0009b2c541dd1caf92a057b (patch) | |
tree | 8ec6fe90184dc977ec2108f17edf008b44c57b0b | |
parent | 516890c9ae37e28cf4b6df41a9c95c6c252a245b (diff) |
chart55: #117185# legend entries get lost after moving the legend
-rwxr-xr-x[-rw-r--r--] | chart2/source/view/main/VLegend.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx index 65011e699..0a3cfd4a6 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; |