[Libreoffice-commits] online.git: Branch 'feature/latency' - wsd/ClientSession.cpp
Tamás Zolnai
tamas.zolnai at collabora.com
Tue Jun 19 13:42:38 UTC 2018
wsd/ClientSession.cpp | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 93e2c2b5b7937e7c7eb8f4198a58464eae7d01e5
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date: Tue Jun 19 15:13:40 2018 +0200
In Impress setpart message syntax is a bit different.
Two alternative sytnax:
"setpart part=1"
"setpart 1"
Change-Id: I42683ca46d642d56cfc3dcc52a10d69a3f00462b
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index a9ad571bf..46bdfe775 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -726,7 +726,13 @@ bool ClientSession::handleKitToClientMessage(const char* buffer, const int lengt
{
int setPart;
if(getTokenInteger(tokens[1], "part", setPart))
+ {
_clientSelectedPart = setPart;
+ }
+ else if (stringToInteger(tokens[1], setPart))
+ {
+ _clientSelectedPart = setPart;
+ }
else
return false;
}
More information about the Libreoffice-commits
mailing list