[Libreoffice-commits] core.git: svx/source
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 27 17:17:20 UTC 2019
svx/source/sidebar/line/LineWidthPopup.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 25cc6dcef22e51c1bfa01e8fbed5046439bb1428
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Sep 27 09:04:56 2019 +0200
Commit: Xisco FaulĂ <xiscofauli at 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Ă <xiscofauli at 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";
More information about the Libreoffice-commits
mailing list