sc/source/ui/cctrl/dpcontrol.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e44a2c4f0f39c2c6209677acc4aec66c2844a7eb
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Sep 25 08:22:11 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu Sep 25 10:58:55 2025 +0200

    cid#1666412 Result is not floating-point
    
    and
    
    cid#1666413 Result is not floating-point
    
    Change-Id: I884d4c23159ef173ede9f4c03a3c3a9814161ca5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191478
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/sc/source/ui/cctrl/dpcontrol.cxx b/sc/source/ui/cctrl/dpcontrol.cxx
index ad585ea092a4..90db68020017 100644
--- a/sc/source/ui/cctrl/dpcontrol.cxx
+++ b/sc/source/ui/cctrl/dpcontrol.cxx
@@ -230,8 +230,8 @@ void ScDPFieldButton::drawPopupButton()
     mpOutDev->SetLineColor();
     mpOutDev->DrawRect(tools::Rectangle(aPos, aSize));
 
-    const double nVDist = aSize.Height() / 4;
-    const double nHDist = aSize.Width() / 10;
+    const double nVDist = aSize.Height() / 4.0;
+    const double nHDist = aSize.Width() / 10.0;
     const double fZoom = static_cast<double>(maZoomY);
 
     aBackgroundColor = mbPopupPressed      ? mrStyle.GetButtonTextColor()

Reply via email to