[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sc/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 10 09:13:13 UTC 2021


 sc/source/ui/view/gridwin2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1363e7a09526c77a0119b86bd90a3b20686ca4ff
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Feb 9 17:14:13 2021 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Feb 10 10:12:37 2021 +0100

    autofilter: handle click for scaled dropdown button
    
    Missing thing for commit:
    68892230ddcde135e9951047a3621438eb7987d0
    autofilter: scale dropdown button according to zoom level
    
    rendering was scaled but click position was handled
    using non scaled button size
    
    Change-Id: I599b7e6aef39e8b5225b53423125f2b271597a46
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110646
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx
index 490efe5531be..e924c11a0145 100644
--- a/sc/source/ui/view/gridwin2.cxx
+++ b/sc/source/ui/view/gridwin2.cxx
@@ -351,7 +351,7 @@ bool ScGridWindow::DPTestFieldPopupArrow(
     Size aScrSize(nSizeX-1, nSizeY-1);
 
     // Check if the mouse cursor is clicking on the popup arrow box.
-    ScDPFieldButton aBtn(this, &GetSettings().GetStyleSettings());
+    ScDPFieldButton aBtn(this, &GetSettings().GetStyleSettings(), &GetMapMode().GetScaleY());
     aBtn.setBoundingBox(aScrPos, aScrSize, bLayoutRTL);
     aBtn.setPopupLeft(false);   // DataPilot popup is always right-aligned for now
     Point aPopupPos;


More information about the Libreoffice-commits mailing list