kit/ChildSession.cpp | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 12d6db8a3dcc83cfddd4444b20893f2ca165a448 Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits