sw/source/uibase/docvw/HeaderFooterWin.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
New commits: commit 409cd9a35458cab71da4c1881f15232c8510ec7e Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Feb 22 19:38:56 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Feb 23 10:14:07 2021 +0100 allow fading in/out to happen while a menu is open I don't see an ill effects and this is happening already in the non-vcl menu case so drop the vcl-only case guard Change-Id: I6e0c7f645f9e1d2ba79215c0458659cd2a610ef2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111357 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index 0c4ed113f6c7..2232c7b8d4cd 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -44,7 +44,6 @@ #include <drawinglayer/processor2d/baseprocessor2d.hxx> #include <drawinglayer/processor2d/processorfromoutputdevice.hxx> #include <vcl/canvastools.hxx> -#include <vcl/menu.hxx> #include <vcl/metric.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> @@ -274,14 +273,11 @@ void SwHeaderFooterWin::ShowAll(bool bShow) m_xMenuButton->set_visible(!bIsEmptyHeaderFooter); m_xPushButton->set_visible(bIsEmptyHeaderFooter); - if (!PopupMenu::IsInExecute()) - { - m_bIsAppearing = bShow; + m_bIsAppearing = bShow; - if (m_aFadeTimer.IsActive()) - m_aFadeTimer.Stop(); - m_aFadeTimer.Start(); - } + if (m_aFadeTimer.IsActive()) + m_aFadeTimer.Stop(); + m_aFadeTimer.Start(); } bool SwHeaderFooterWin::Contains( const Point &rDocPt ) const _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits