diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-08-13 13:38:04 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-08-13 17:48:57 +0200 |
commit | 1352b1fcfa1668081c3197a12d5362286f8f9710 (patch) | |
tree | 353259cdeaaa25f2a864a344d8f1465112c57324 /sc/source | |
parent | 2abea7b8799f20ae2f47bb9f938670dea4f4f09f (diff) |
tdf#126848: sc pivot table popup: avoid flicker
Follow-up of 4dadbff74eff5f8ad00df99c659f8a2b914e09a1
Regression from commit a4cb27f61376d8f2d8faed0022c291af68d437bd
Change-Id: I4d0cd2ad2d7d239307c48c9bc8c1f1ced6597f47
Reviewed-on: https://gerrit.libreoffice.org/77408
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/gridwin2.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx index 248d978f793d..ebb73fe891ae 100644 --- a/sc/source/ui/view/gridwin2.cxx +++ b/sc/source/ui/view/gridwin2.cxx @@ -466,6 +466,12 @@ void ScGridWindow::DPLaunchFieldPopupMenu(const Point& rScrPos, const Size& rScr mpDPFieldPopup.disposeAndClear(); mpDPFieldPopup.reset(VclPtr<ScCheckListMenuWindow>::Create(this, pViewData->GetDocument())); + + // 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. + mpDPFieldPopup->RequestDoubleBuffering(true); + mpDPFieldPopup->setName("DataPilot field member popup"); mpDPFieldPopup->setExtendedData(std::move(pDPData)); mpDPFieldPopup->setOKAction(new DPFieldPopupOKAction(this)); |