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

New commits:
commit 6b2e21129a0de2a1fe36f36da522738d051a0950
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
    Reviewed-on: https://gerrit.libreoffice.org/31480
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index e12f5e3..4e65d3a 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