sw/source/uibase/docvw/edtwin.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
New commits: commit 52eb6979a47b65ef79e7f007a4418094b44802ba Author: Ashod Nakashian <[email protected]> Date: Sun Sep 25 18:06:55 2016 -0400 editeng: invalidate everything only when toggling header-footer edit Change-Id: I928e881b3718666627a1cf33a162910ef17b47f9 Reviewed-on: https://gerrit.libreoffice.org/29278 Reviewed-by: Ashod Nakashian <[email protected]> Tested-by: Ashod Nakashian <[email protected]> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 03a99c9..e6b2f69 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -2913,10 +2913,10 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) !(bWasInFooter && eControl == Footer)) { rSh.SetShowHeaderFooterSeparator(eControl, !rSh.IsShowHeaderFooterSeparator(eControl)); - } - // Repaint everything - Invalidate(); + // Repaint everything + Invalidate(); + } } } else @@ -2927,10 +2927,12 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) rSh.SetShowHeaderFooterSeparator( Footer, eControl == Footer ); if ( !rSh.IsHeaderFooterEdit() ) + { rSh.ToggleHeaderFooterEdit(); - // Repaint everything - rSh.GetWin()->Invalidate(); + // Repaint everything + rSh.GetWin()->Invalidate(); + } } } else _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
