[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - svx/source

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 10 08:48:02 UTC 2019


 svx/source/sidebar/line/LineWidthPopup.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 4396bfa7c05b8578ed4ea54a6db85afc84e0a683
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Sep 27 09:04:56 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Oct 10 10:47:27 2019 +0200

    tdf#127676: avoid flickering in line width popup
    
    Change-Id: Ie69a5b4d33d12316e6fd7e443b92851cffc95b8c
    Reviewed-on: https://gerrit.libreoffice.org/79667
    Tested-by: Jenkins
    Reviewed-by: Xisco FaulĂ­ <xiscofauli at libreoffice.org>
    (cherry picked from commit 25cc6dcef22e51c1bfa01e8fbed5046439bb1428)
    Reviewed-on: https://gerrit.libreoffice.org/79748
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx
index abcefb0fe231..813160616611 100644
--- a/svx/source/sidebar/line/LineWidthPopup.cxx
+++ b/svx/source/sidebar/line/LineWidthPopup.cxx
@@ -47,6 +47,11 @@ LineWidthPopup::LineWidthPopup(LinePropertyPanelBase& rParent)
 
     m_xVSWidth = VclPtr<LineWidthValueSet>::Create(m_xBox);
 
+    // Avoid flicker when hovering over the menu items.
+    if (!IsNativeControlSupported(ControlType::Pushbutton, ControlPart::Focus))
+        // If NWF renders the focus rects itself, that breaks double-buffering.
+        m_xMFWidth->RequestDoubleBuffering(true);
+
     m_xVSWidth->SetStyle(m_xVSWidth->GetStyle()| WB_3DLOOK |  WB_NO_DIRECTSELECT);
 
     maStrUnits[0] = "0.5";


More information about the Libreoffice-commits mailing list