diff options
author | obo <obo@openoffice.org> | 2011-03-16 09:56:18 +0100 |
---|---|---|
committer | obo <obo@openoffice.org> | 2011-03-16 09:56:18 +0100 |
commit | d3bd824556722068e2893dd96821554ccbb1d662 (patch) | |
tree | 0a28426e53a4f3f92f29bde256ec369bf4e40692 /chart2/source/view/main/VLegend.cxx | |
parent | b491f91e8d6cebe3ade4f805152100489eb91754 (diff) | |
parent | 2e2bd7aab73bbf4402034569c6c5ab7d227d9c83 (diff) |
CWS-TOOLING: integrate CWS chart55
Notes
split repo tag: calc_ooo/DEV300_m103
Diffstat (limited to 'chart2/source/view/main/VLegend.cxx')
-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 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; |