[Libreoffice-commits] online.git: kit/ChildSession.cpp
Jan Holesovsky
kendy at collabora.com
Thu Dec 1 11:28:33 UTC 2016
kit/ChildSession.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 2b13cfa1a7f4b7b3f472b1e7c36c3a6b9606e134
Author: Jan Holesovsky <kendy at 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)
More information about the Libreoffice-commits
mailing list