[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loolwsd/LOOLSession.cpp

Jan Holesovsky kendy at collabora.com
Tue Jan 12 05:54:22 PST 2016


 loolwsd/LOOLSession.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b7648fab14bc75ab96c9a1b0e79d71477251ac82
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Jan 12 14:51:32 2016 +0100

    loolwsd: Don't cache empty partpagerectangles.
    
    This is implemented only for Writer, so they are empty for Calc and Impress;
    and yet they can confuse loleaflet terribly...

diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp
index 85e6f0e..e920adb 100644
--- a/loolwsd/LOOLSession.cpp
+++ b/loolwsd/LOOLSession.cpp
@@ -287,7 +287,8 @@ bool MasterProcessSession::handleInput(const char *buffer, int length)
             }
             else if (tokens[0] == "partpagerectangles:")
             {
-                peer->_tileCache->saveTextFile(std::string(buffer, length), "partpagerectangles.txt");
+                if (tokens.count() > 1 && !tokens[1].empty())
+                    peer->_tileCache->saveTextFile(std::string(buffer, length), "partpagerectangles.txt");
             }
             else if (tokens[0] == "invalidatecursor:")
             {


More information about the Libreoffice-commits mailing list