summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-02-09 17:14:13 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2021-03-08 17:36:54 +0100
commit7c171caa74e0e23d952bdb5289b7e59ab17e61d1 (patch)
treeee6b59f899327cf8b57c83f24475af3264f27dfb /sc
parentfe7fd774c7c0398a28f0b2292e53c94d42f02cf3 (diff)
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@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112160 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin2.cxx2
1 files changed, 1 insertions, 1 deletions
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;