[Libreoffice-commits] core.git: sc/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 8 16:37:39 UTC 2021


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

New commits:
commit 7c171caa74e0e23d952bdb5289b7e59ab17e61d1
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Feb 9 17:14:13 2021 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Mar 8 17:36:54 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>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112160
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx
index d71741cda2bc..839c0fc6b6d9 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