Kaydet (Commit) 01fbbf42 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242921 Result is not floating-point

Change-Id: Iaeb1d6074fa7c9f66810cee563be0850ccc1d769
üst 951f605a
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment