From dca0391318ca9a88ef89ce89da7588732a47f43b Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Mon, 16 May 2011 22:09:46 +0200 Subject: WaE - add explicit casting (decimal-types → integer types) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chart2/source/view/main/VLegend.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chart2/source/view/main') 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(::rtl::math::approxCeil( aRelativeSize.Primary * rPageSize.Width )); + aLegendSize.Height = static_cast(::rtl::math::approxCeil( aRelativeSize.Secondary * rPageSize.Height )); } else eExpansion = ::com::sun::star::chart::ChartLegendExpansion_HIGH; -- cgit