sc/source/ui/view/output.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b89a26457eef67c23f5bcc1495b564fc7a86654f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jan 11 17:14:21 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jan 12 12:01:05 2022 +0100 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 <caol...@redhat.com> 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();