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