summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-13 12:34:22 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-16 13:18:28 +0100
commit56dd27d9ed829ea0444b3b5932dcd0d431d6e251 (patch)
tree2e1cbe51a4e4261f6c9da84958e3791c261e5e31 /sw
parent9adaaa36069cf2b3f2f00ca4eb431a08b501b8c8 (diff)
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
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 9a5ff25ac2bd..332c30a6df3e 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);