summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-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();