editeng: invalidate everything only when toggling header-footer edit

Desktop / LibreOffice - Ashod Nakashian [collabora.co.uk] - 28 September 2016 09:02 UTC

The repaining of the full screen can be costly in certain cases. Here we avoid it altogether if we don't switch between header/footer editing and document-body editing.

If for whatever reason this results in some regression, we should then avoid the invalidation for the Online
version only. The change is unconditional because, in theory, it shouldn't cause regression, and tests pass.

Change-Id: I05467c98b5fa4857b94f6742004f98dca3799826 Reviewed-on: https://gerrit.libreoffice.org/29272

41ef507 editeng: invalidate everything only when toggling header-footer edit
sw/source/uibase/docvw/edtwin.cxx | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share