From 5fd43512c37ed5c3937b94d0a8d53d7e9c2ac0d1 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 9 Jun 2016 15:19:14 +0200 Subject: svx lok: assert that per-view callbacks don't invoke the model callback They should invoke SfxViewShell::libreOfficeKitViewCallback() instead. Change-Id: Ie7150e9decb40de917a5257aa4090595bdc5e387 Reviewed-on: https://gerrit.libreoffice.org/26108 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- svx/source/svdraw/svdmodel.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'svx') diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index acef3ac0a307..1483a0f87f7e 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -91,6 +91,7 @@ #include #include #include +#include using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -814,6 +815,9 @@ void SdrModel::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void SdrModel::libreOfficeKitCallback(int nType, const char* pPayload) const { + // Per-view callbacks should always invoke SfxViewShell::libreOfficeKitViewCallback(). + assert(!comphelper::LibreOfficeKit::isViewCallback()); + if (mbTiledSearching) { switch (nType) -- cgit