summaryrefslogtreecommitdiff
path: root/chart2/source/view/main
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-05-16 22:09:46 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-05-16 22:09:46 +0200
commitdca0391318ca9a88ef89ce89da7588732a47f43b (patch)
tree40d7d1874ea8128434bf2c674ed8663503bd4a50 /chart2/source/view/main
parent080f1432c76bc235aa9d084b6a3b69711ab07dd6 (diff)
WaE - add explicit casting (decimal-types → integer types)
Diffstat (limited to 'chart2/source/view/main')
-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 5835233ec8ca..0c074aea367a 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -898,8 +898,8 @@ void VLegend::createShapes(
RelativeSize aRelativeSize;
if ((xLegendProp->getPropertyValue( C2U( "RelativeSize" )) >>= aRelativeSize))
{
- aLegendSize.Width = ::rtl::math::approxCeil( aRelativeSize.Primary * rPageSize.Width );
- aLegendSize.Height = ::rtl::math::approxCeil( aRelativeSize.Secondary * rPageSize.Height );
+ aLegendSize.Width = static_cast<sal_Int32>(::rtl::math::approxCeil( aRelativeSize.Primary * rPageSize.Width ));
+ aLegendSize.Height = static_cast<sal_Int32>(::rtl::math::approxCeil( aRelativeSize.Secondary * rPageSize.Height ));
}
else
eExpansion = ::com::sun::star::chart::ChartLegendExpansion_HIGH;