Blame SOURCES/0149-sw-implement-per-view-LOK_CALLBACK_INVALIDATE_TILES.patch

f325b2
From 3b8231a0656c7bddb2159bf494dd25074c0755b2 Mon Sep 17 00:00:00 2001
f325b2
From: Miklos Vajna <vmiklos@collabora.co.uk>
f325b2
Date: Thu, 17 Sep 2015 11:44:53 +0200
f325b2
Subject: [PATCH 149/398] sw: implement per-view LOK_CALLBACK_INVALIDATE_TILES
f325b2
f325b2
Change-Id: Id839dc076824e69fe07386c83bf21fc4c7ce2b8e
f325b2
(cherry picked from commit b0f04d1ba273cc94989a5079f957117433076a9b)
f325b2
---
f325b2
 sw/source/uibase/docvw/edtwin.cxx | 10 ++++++++--
f325b2
 1 file changed, 8 insertions(+), 2 deletions(-)
f325b2
f325b2
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
f325b2
index a76f68755b30..f392010fb6b1 100644
f325b2
--- a/sw/source/uibase/docvw/edtwin.cxx
f325b2
+++ b/sw/source/uibase/docvw/edtwin.cxx
f325b2
@@ -69,6 +69,7 @@
f325b2
 #include <basegfx/polygon/b2dpolygon.hxx>
f325b2
 
f325b2
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
f325b2
+#include <comphelper/lok.hxx>
f325b2
 
f325b2
 #include <editeng/acorrcfg.hxx>
f325b2
 #include <SwSmartTagMgr.hxx>
f325b2
@@ -6217,8 +6218,13 @@ void SwEditWin::LogicInvalidate(const Rectangle* pRectangle)
f325b2
     else
f325b2
         sRectangle = pRectangle->toString();
f325b2
 
f325b2
-    if ( m_rView.GetWrtShellPtr() )
f325b2
-        m_rView.GetWrtShell().libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
f325b2
+    if (comphelper::LibreOfficeKit::isViewCallback())
f325b2
+        m_rView.libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
f325b2
+    else
f325b2
+    {
f325b2
+        if (m_rView.GetWrtShellPtr())
f325b2
+            m_rView.GetWrtShell().libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
f325b2
+    }
f325b2
 }
f325b2
 
f325b2
 void SwEditWin::LogicMouseButtonDown(const MouseEvent& rMouseEvent)
f325b2
-- 
f325b2
2.12.0
f325b2