diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-17 11:44:53 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-21 07:30:24 +0200 |
commit | b0f04d1ba273cc94989a5079f957117433076a9b (patch) | |
tree | af698bd3ebbb06d6c7e702a9cc57c9e2033eda19 | |
parent | 1704221067e2bc6ba26eaa83573d29964b413a34 (diff) |
sw: implement per-view LOK_CALLBACK_INVALIDATE_TILES
Change-Id: Id839dc076824e69fe07386c83bf21fc4c7ce2b8e
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index d7852e42def4..49e5273e8b9b 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -69,6 +69,7 @@ #include <basegfx/polygon/b2dpolygon.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> +#include <comphelper/lok.hxx> #include <editeng/acorrcfg.hxx> #include <SwSmartTagMgr.hxx> @@ -6223,8 +6224,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) |