diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-23 13:10:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-23 21:52:38 +0200 |
commit | e606d9336149a78eabd9440ccea2f6c2a29cd0d0 (patch) | |
tree | d5b4c03359c26938b5e5432ff7d02075e913fc50 /sw/source/uibase/uiview/viewmdi.cxx | |
parent | 4dc2d5ec7a375f5543f3fba8c1e56988c0e8067f (diff) |
categorize the reasons writer calls "LockPaint"
and bubble to a new InvalidateAll the collected
reasons for that whole document Invalidate
https: //github.com/CollaboraOnline/online/issues/6379
Change-Id: Id71c59f9cafebe42085337ee1e9591eb9f1162d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152162
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source/uibase/uiview/viewmdi.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewmdi.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx index 2a9529c6db9f..074158ff4be3 100644 --- a/sw/source/uibase/uiview/viewmdi.cxx +++ b/sw/source/uibase/uiview/viewmdi.cxx @@ -89,7 +89,7 @@ void SwView::SetZoom_( const Size &rEditSize, SvxZoomType eZoomType, { bool bUnLockView = !m_pWrtShell->IsViewLocked(); m_pWrtShell->LockView( true ); - m_pWrtShell->LockPaint(); + m_pWrtShell->LockPaint(LockPaintReason::SetZoom); { // start of SwActContext scope SwActContext aActContext(m_pWrtShell.get()); @@ -225,7 +225,7 @@ void SwView::SetViewLayout( sal_uInt16 nColumns, bool bBookMode, bool bViewOnly { const bool bUnLockView = !m_pWrtShell->IsViewLocked(); m_pWrtShell->LockView( true ); - m_pWrtShell->LockPaint(); + m_pWrtShell->LockPaint(LockPaintReason::ViewLayout); { |