[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - sw/source
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 10 08:47:04 UTC 2019
sw/source/uibase/sidebar/PageSizeControl.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit ad02da65c066b1860ebe705980ee86403bdedf00
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Sep 27 19:45:46 2019 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Oct 10 10:46:30 2019 +0200
tdf#126321: avoid flickering in page size popup
In a Tabbed notebookbar, Layout - Page Size
Change-Id: I74ab54e96486de960d1ccc7bcb3c2679e25a6e9e
Reviewed-on: https://gerrit.libreoffice.org/79753
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
Tested-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/sw/source/uibase/sidebar/PageSizeControl.cxx b/sw/source/uibase/sidebar/PageSizeControl.cxx
index c5c7a9bbda73..c1c0d876d325 100644
--- a/sw/source/uibase/sidebar/PageSizeControl.cxx
+++ b/sw/source/uibase/sidebar/PageSizeControl.cxx
@@ -76,6 +76,12 @@ PageSizeControl::PageSizeControl( sal_uInt16 nId, vcl::Window* pParent )
get(maMoreButton, "moreoptions");
get(maContainer, "container");
mpSizeValueSet = VclPtr<svx::sidebar::ValueSetWithTextControl>::Create( maContainer.get(), WB_BORDER );
+
+ // 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.
+ mpSizeValueSet->RequestDoubleBuffering(true);
+
maWidthHeightField = VclPtr<MetricField>::Create( maContainer.get(), 0 );
maWidthHeightField->Hide();
maWidthHeightField->SetUnit(FieldUnit::CM);
More information about the Libreoffice-commits
mailing list