[Libreoffice-commits] core.git: sw/source

Miklos Vajna vmiklos at collabora.co.uk
Thu Jun 9 17:00:58 UTC 2016


 sw/source/core/crsr/viscrs.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 22367b58dbca65149ec9bc64d851be4d57759f6e
Author: Miklos Vajna <vmiklos at 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 <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at 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


More information about the Libreoffice-commits mailing list