sw/source/core/crsr/viscrs.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 22367b58dbca65149ec9bc64d851be4d57759f6e Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Thu Jun 9 17:32:18 2016 +0200 sw: implement per-view LOK_CALLBACK_SET_PART Used when e.g. jumping from page 1 to page 2 in a document, and the page number widget should be updated in gtktiledviewer. Change-Id: If5359ffbfd215c71785ab51f8dcd18cc8bf017ee Reviewed-on: https://gerrit.libreoffice.org/26115 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 03486c3..8c9ee30 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -189,7 +189,10 @@ void SwVisibleCursor::SetPosAndShow() { m_nPageLastTime = nPage; OString aPayload = OString::number(nPage - 1); - m_pCursorShell->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr()); + if (comphelper::LibreOfficeKit::isViewCallback()) + m_pCursorShell->GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_SET_PART, aPayload.getStr()); + else + m_pCursorShell->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr()); } // notify about the cursor position & size _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits