Kaydet (Commit) 351aa724 authored tarafından Miklos Vajna's avatar Miklos Vajna

sd: implement per-view LOK_CALLBACK_INVALIDATE_TILES

With this, gtktiledviewer no longer crashes on load when opening a
sample ODP file.

Change-Id: I19857d6dcfab74c9fa282754e450c951f7ca564c
Reviewed-on: https://gerrit.libreoffice.org/26223Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 8110dd24
......@@ -37,6 +37,7 @@
#include "drawdoc.hxx"
#include "AccessibleDrawDocumentView.hxx"
#include "WindowUpdater.hxx"
#include "ViewShellBase.hxx"
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
......@@ -1016,6 +1017,12 @@ void Window::LogicInvalidate(const Rectangle* pRectangle)
aRectangle = OutputDevice::LogicToLogic(aRectangle, MAP_100TH_MM, MAP_TWIP);
sRectangle = aRectangle.toString();
}
if (comphelper::LibreOfficeKit::isViewCallback())
{
SfxViewShell& rSfxViewShell = mpViewShell->GetViewShellBase();
rSfxViewShell.libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
}
else
mpViewShell->GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment