summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-09 19:28:12 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-10 07:01:30 +0000
commit901026cfbbf12f778e039a7b523bf30e8019e8ed (patch)
tree68565720b1ccb786c7646c04f8a3c66544a59e7c /svx
parent4188a5cc5f1fbd492f9ece60a7bf7742d5fdebd8 (diff)
svx: implement per-view LOK_CALLBACK_INVALIDATE_TILES
This is the last callback that was unconditionally invoked on the model on load, before the SfxBindings timer starts. Change-Id: Id494963459ac2bee4d0f9e642af88e04e94353c3 Reviewed-on: https://gerrit.libreoffice.org/26129 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 4f5d0bba87f4..1323abd5ea34 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -230,7 +230,13 @@ void SdrMarkView::ModelHasChanged()
sSelection = aSelection.toString();
}
- GetModel()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sSelection.getStr());
+ if (comphelper::LibreOfficeKit::isViewCallback())
+ {
+ if(SfxViewShell* pViewShell = SfxViewShell::Current())
+ pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, sSelection.getStr());
+ }
+ else
+ GetModel()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sSelection.getStr());
}
}