summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-11 17:14:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-12 12:01:05 +0100
commitb89a26457eef67c23f5bcc1495b564fc7a86654f (patch)
tree13b7ce973dadf3d2202db9f9cfb2deb5c7f86dcf
parentdc9ccf3d8f294cd7ae9d5bece7b6c16c3b22f6a5 (diff)
cid#1497092 Result is not floating-point
Change-Id: I3ee4a3fa13db8958970206059dbd99d841d3c706 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128294 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/view/output.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index 2a94fc572051..bd630f531ed6 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -931,7 +931,7 @@ void drawIconSets(vcl::RenderContext& rRenderContext, const ScIconSetInfo* pOldI
}
Size aSize = rIcon.GetSizePixel();
- double fRatio = aSize.Width() / aSize.Height();
+ double fRatio = static_cast<double>(aSize.Width()) / aSize.Height();
tools::Long aWidth = fRatio * aHeight;
rRenderContext.Push();