[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Tue Jan 13 03:40:46 PST 2015
sw/source/core/view/viewsh.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 8c7f98d400ce222b5246b04a681526586bd4e5bf
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Jan 13 12:34:22 2015 +0100
sw: invalidate after keypresses when we have a callback
Ideally we could always just invalidate and paint when the main loop
says so, but currently without priorities that can take some time.
So just do the invalidate-then-paint when we have a callback that is
listening to invalidations.
Change-Id: I6a835a0a149ae01a4ece3a319dffbe81cd5bd3eb
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 27ec8a3..adbaaba 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -393,7 +393,10 @@ void SwViewShell::ImplEndAction( const bool bIdleEnd )
if ( bPaintsFromSystem )
PaintDesktop( aRect );
- pCurrentLayout->Paint( aRect );
+ if (!mpLibreOfficeKitCallback)
+ pCurrentLayout->Paint( aRect );
+ else
+ pCurrentLayout->GetCurrShell()->InvalidateWindows(aRect.SVRect());
// #i75172# end DrawingLayer paint
DLPostPaint2(true);
More information about the Libreoffice-commits
mailing list