sw/source/uibase/docvw/HeaderFooterWin.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b8850fe1d7dc86009516352c796619b33856141c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Nov 14 13:14:01 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Nov 14 17:37:24 2022 +0100

    tdf#147802 don't trigger fade timer already shown/hidden
    
    once they widgets are created and hidden, they are getting triggered to
    update contents on pretty much all layout/draw events even though they
    are already in the visibility state they are asked to enter.
    
    Change-Id: I6078a5f322c88f0380ac42537b4921af1c56add5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142708
    Tested-by: Jenkins
    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 ce703c679e90..81f9121892f1 100644
--- a/sw/source/uibase/docvw/HeaderFooterWin.cxx
+++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx
@@ -274,6 +274,9 @@ void SwHeaderFooterWin::ShowAll(bool bShow)
     m_xMenuButton->set_visible(!bIsEmptyHeaderFooter);
     m_xPushButton->set_visible(bIsEmptyHeaderFooter);
 
+    if (m_bIsAppearing == bShow)
+        return;
+
     m_bIsAppearing = bShow;
 
     if (m_aFadeTimer.IsActive())

Reply via email to