kit/ChildSession.cpp |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 2b13cfa1a7f4b7b3f472b1e7c36c3a6b9606e134
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Thu Dec 1 12:25:16 2016 +0100

    Don't send setpart: to text documents, it will always jump to the 1st page.
    
    Change-Id: I809f2ba493329174a33f99d63eec2c60b38acb05

diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index 038a649..dc825cd 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -109,8 +109,11 @@ bool ChildSession::_handleInput(const char *buffer, int 
length)
         // Notify all views about updated view info
         _docManager.notifyViewInfo(viewIds);
 
-        sendTextFrame("curpart: part=" + std::to_string(curPart));
-        sendTextFrame("setpart: part=" + std::to_string(curPart));
+        if (getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_TEXT)
+        {
+            sendTextFrame("curpart: part=" + std::to_string(curPart));
+            sendTextFrame("setpart: part=" + std::to_string(curPart));
+        }
 
         //TODO: Is the order of these important?
         for (const auto& pair : _lastDocEvents)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to