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

New commits:
commit 25cc6dcef22e51c1bfa01e8fbed5046439bb1428
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Sep 27 09:04:56 2019 +0200
Commit:     Xisco Faulí <xiscofa...@libreoffice.org>
CommitDate: Fri Sep 27 19:15:51 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í <xiscofa...@libreoffice.org>

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";
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to