[Libreoffice-commits] online.git: loolwsd/MasterProcessSession.cpp

Jan Holesovsky kendy at collabora.com
Tue Jan 12 05:58:35 PST 2016


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

New commits:
commit d51972c28d400870794e203f2170dd483f5cdc8b
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/MasterProcessSession.cpp b/loolwsd/MasterProcessSession.cpp
index 2440e71..e427328 100644
--- a/loolwsd/MasterProcessSession.cpp
+++ b/loolwsd/MasterProcessSession.cpp
@@ -177,7 +177,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