summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2019-09-27 09:04:56 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-10-10 10:47:27 +0200
commit4396bfa7c05b8578ed4ea54a6db85afc84e0a683 (patch)
treefa8dacb22d92082b7cadf9c26209277e5167505b /svx
parentad02da65c066b1860ebe705980ee86403bdedf00 (diff)
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@libreoffice.org> (cherry picked from commit 25cc6dcef22e51c1bfa01e8fbed5046439bb1428) Reviewed-on: https://gerrit.libreoffice.org/79748 Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/line/LineWidthPopup.cxx5
1 files changed, 5 insertions, 0 deletions
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";