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

Samuel Mehrbrodt (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 23 05:54:12 UTC 2021


 sc/source/ui/view/gridwin.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e752ce56b51c832dbea1e7f20e3b6671d99df990
Author:     Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
AuthorDate: Tue Sep 21 16:28:30 2021 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
CommitDate: Thu Sep 23 07:53:38 2021 +0200

    Fix color filter popup position
    
    popup was wrongly placed when dropdown was not in the first column
    
    Change-Id: Id7170df233148564cba2fe2d498194b9e2b0161f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122396
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 250b1152f114..16ce773a287b 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -956,7 +956,8 @@ void ScGridWindow::UpdateAutoFilterFromMenu(AutoFilterMode eMode)
                     }
                     i++;
                 }
-                Point pos(mpAutoFilterPopup->GetSizePixel().getWidth(), 150);
+                Point pos(mpAutoFilterPopup->GetPosPixel());
+                pos.Move(150, 0);
                 sal_uInt16 nSelected = pColorMenu->Execute(this, pos);
                 pColorMenu.disposeAndClear();
                 rControl.terminateAllPopupMenus();


More information about the Libreoffice-commits mailing list