From f05cc18dda02b1b87ea4d87add13d94eb608b5d7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 2 Oct 2014 10:34:45 +0100 Subject: coverity#1242832 Result is not floating-point Change-Id: Ic244ebaf7e19f82a086318a91024767a2044ab03 --- chart2/source/view/main/VLegendSymbolFactory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart2') diff --git a/chart2/source/view/main/VLegendSymbolFactory.cxx b/chart2/source/view/main/VLegendSymbolFactory.cxx index 8c5abaf75e63..cd3fb817ed93 100644 --- a/chart2/source/view/main/VLegendSymbolFactory.cxx +++ b/chart2/source/view/main/VLegendSymbolFactory.cxx @@ -140,7 +140,7 @@ Reference< drawing::XShape > VLegendSymbolFactory::createSymbol( if( rExplicitSymbol >>= aSymbol ) { drawing::Direction3D aSymbolSize( nSize, nSize, 0 ); - drawing::Position3D aPos( rEntryKeyAspectRatio.Width/2, rEntryKeyAspectRatio.Height/2, 0 ); + drawing::Position3D aPos( rEntryKeyAspectRatio.Width/2.0, rEntryKeyAspectRatio.Height/2.0, 0 ); AbstractShapeFactory* pFactory = AbstractShapeFactory::getOrCreateShapeFactory( xShapeFactory ); if( aSymbol.Style == chart2::SymbolStyle_STANDARD ) { -- cgit