[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-0' - kit/ChildSession.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed Nov 30 04:02:53 UTC 2016


 kit/ChildSession.cpp |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 12d6db8a3dcc83cfddd4444b20893f2ca165a448
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Tue Nov 29 22:59:47 2016 -0500

    loolwsd: Writer doesn't have parts
    
    Fixup the part for EMPTY invalidation as well.
    
    N.B. Should replace 'EMPTY' with '0,0,INT_MAX,INT_MAX'
    to be consistent. Since both are expected, no compat
    issues should be expected.
    
    Change-Id: I066981622b1de71e9e849530df0583291b74b804
    Reviewed-on: https://gerrit.libreoffice.org/31392
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index 65868cf..755e593 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -1053,6 +1053,11 @@ void ChildSession::loKitCallback(const int nType, const std::string& rPayload)
                               " width=" + std::to_string(width) +
                               " height=" + std::to_string(height));
             }
+            if (tokens.count() == 2 && tokens[0] == "EMPTY")
+            {
+                const std::string part = (_docType != "text" ? tokens[1].c_str() : "0"); // Writer renders everything as part 0.
+                sendTextFrame("invalidatetiles: EMPTY, " + part);
+            }
             else
             {
                 sendTextFrame("invalidatetiles: " + rPayload);


More information about the Libreoffice-commits mailing list