loolwsd/TileCache.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-)
New commits: commit 693d6ccdbfec663af8d60960cbb7b65a4701dfbb Author: Ashod Nakashian <[email protected]> Date: Thu Oct 20 10:58:58 2016 -0400 bccu#2104 - writer: undo/redo doesn't invalidate properly Change-Id: I9b3ee76cfde2c15ae59bb393070224c9f14ab586 Reviewed-on: https://gerrit.libreoffice.org/30109 Reviewed-by: Ashod Nakashian <[email protected]> Tested-by: Ashod Nakashian <[email protected]> diff --git a/loolwsd/TileCache.cpp b/loolwsd/TileCache.cpp index 9b7293f..f3cb817 100644 --- a/loolwsd/TileCache.cpp +++ b/loolwsd/TileCache.cpp @@ -330,6 +330,16 @@ void TileCache::invalidateTiles(const std::string& tiles) if (tokens.count() == 2 && tokens[1] == "EMPTY") { invalidateTiles(-1, 0, 0, INT_MAX, INT_MAX); + return; + } + else if (tokens.count() == 3 && tokens[1] == "EMPTY,") + { + int part = 0; + if (stringToInteger(tokens[2], part)) + { + invalidateTiles(part, 0, 0, INT_MAX, INT_MAX); + return; + } } else { @@ -342,12 +352,11 @@ void TileCache::invalidateTiles(const std::string& tiles) getTokenInteger(tokens[5], "height", height)) { invalidateTiles(part, x, y, width, height); - } - else - { - Log::error("Unexpected invalidatetiles request: " + tiles); + return; } } + + Log::error("Unexpected invalidatetiles request: " + tiles); } void TileCache::removeFile(const std::string& fileName) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
