[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - sw/source
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Sep 26 01:17:57 UTC 2016
sw/source/uibase/docvw/edtwin.cxx | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit 52eb6979a47b65ef79e7f007a4418094b44802ba
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
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 <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
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
More information about the Libreoffice-commits
mailing list