summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 10:34:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:57 +0100
commitf05cc18dda02b1b87ea4d87add13d94eb608b5d7 (patch)
tree274e15e79d949b171e08fb7f889c738c1f8eeb59 /chart2
parentfba7c60298fef64e0f22d7999dc979e3afdaa6a5 (diff)
coverity#1242832 Result is not floating-point
Change-Id: Ic244ebaf7e19f82a086318a91024767a2044ab03
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/VLegendSymbolFactory.cxx2
1 files changed, 1 insertions, 1 deletions
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 )
{