diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-02-09 17:14:13 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2021-02-10 10:12:37 +0100 |
commit | 1363e7a09526c77a0119b86bd90a3b20686ca4ff (patch) | |
tree | 1befcf929ffbf55d4c1a80af7ff88c613fd85a1e | |
parent | 25252cf15a0c1b5cd308d502dc8c5efed46bcda2 (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>
-rw-r--r-- | sc/source/ui/view/gridwin2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |