summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 09:47:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:49 +0100
commit01fbbf42689360bee4813a380726ea2747f550f9 (patch)
tree3cea8f6536ac80044091a0703de54174e6bcecb5
parent951f605aee304a37d6f7011dc4defce9ca079405 (diff)
coverity#1242921 Result is not floating-point
Change-Id: Iaeb1d6074fa7c9f66810cee563be0850ccc1d769
-rw-r--r--sfx2/source/control/templatecontaineritem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/templatecontaineritem.cxx b/sfx2/source/control/templatecontaineritem.cxx
index d16cb69ff683..16e05d124651 100644
--- a/sfx2/source/control/templatecontaineritem.cxx
+++ b/sfx2/source/control/templatecontaineritem.cxx
@@ -134,8 +134,8 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
aImageSize = pImage->GetSizePixel();
}
- float nOffX = (aThumbSize.getWidth() - aImageSize.getWidth()) / 2;
- float nOffY = (aThumbSize.getHeight() - aImageSize.getHeight()) / 2;
+ float nOffX = (aThumbSize.getWidth() - aImageSize.getWidth()) / 2.0;
+ float nOffY = (aThumbSize.getHeight() - aImageSize.getHeight()) / 2.0;
float fWidth = aImageSize.Width();
float fHeight = aImageSize.Height();