[Libreoffice-commits] online.git: loolwsd/LOOLSession.cpp
Henry Castro
hcastro at collabora.com
Wed Aug 26 21:07:33 PDT 2015
loolwsd/LOOLSession.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 90f790d7add57d3b47db5539c9581b085a68fd35
Author: Henry Castro <hcastro at collabora.com>
Date: Thu Aug 27 00:07:11 2015 -0400
loolwsd: update status when switching parts
diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp
index b48af37..e489962 100644
--- a/loolwsd/LOOLSession.cpp
+++ b/loolwsd/LOOLSession.cpp
@@ -659,6 +659,7 @@ bool ChildProcessSession::handleInput(const char *buffer, int length)
if (_docType != "text" && _loKitDocument->pClass->getPart(_loKitDocument) != _clientPart)
{
_loKitDocument->pClass->setPart(_loKitDocument, _clientPart);
+ getStatus("", 0);
}
if (tokens[0] == "gettextselection")
{
@@ -831,6 +832,7 @@ bool ChildProcessSession::loadDocument(const char *buffer, int length, StringTok
if (!getStatus(buffer, length))
return false;
+
_loKitDocument->pClass->registerCallback(_loKitDocument, myCallback, this);
return true;
@@ -894,6 +896,7 @@ void ChildProcessSession::sendTile(const char *buffer, int length, StringTokeniz
unsigned char *pixmap = new unsigned char[4 * width * height];
if (_docType != "text" && part != _loKitDocument->pClass->getPart(_loKitDocument)) {
_loKitDocument->pClass->setPart(_loKitDocument, part);
+ getStatus("", 0);
}
_loKitDocument->pClass->paintTile(_loKitDocument, pixmap, width, height, tilePosX, tilePosY, tileWidth, tileHeight);
@@ -1090,6 +1093,7 @@ bool ChildProcessSession::setPage(const char *buffer, int length, StringTokenize
return false;
}
_loKitDocument->pClass->setPart(_loKitDocument, page);
+ getStatus("", 0);
return true;
}
More information about the Libreoffice-commits
mailing list