[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4-0' - kit/ChildSession.cpp
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 27 12:41:38 UTC 2019
kit/ChildSession.cpp | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
New commits:
commit 94a3d0ddd81c76f529a3ad3acdfce022f0c51702
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Sat Sep 14 14:11:23 2019 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Sep 27 14:41:20 2019 +0200
Remove invalidations triggered by LOK_CALLBACK_DOCUMENT_SIZE_CHANGED
(cherry picked from commit 53cd0a50a6e565c08295acb54f16ec08af7c31af)
Change-Id: I337471cdfdaa1f9b49f13bcb05340427f116cac0
Reviewed-on: https://gerrit.libreoffice.org/79716
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index c4ec709c9..4a2d0e642 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -2042,25 +2042,7 @@ void ChildSession::loKitCallback(const int type, const std::string& payload)
sendTextFrame("searchresultselection: " + payload);
break;
case LOK_CALLBACK_DOCUMENT_SIZE_CHANGED:
- {
- //TODO: clenaup and merge.
-
- std::unique_lock<std::mutex> lock(_docManager.getDocumentMutex());
- const int parts = getLOKitDocument()->getParts();
- for (int i = 0; i < parts; ++i)
- {
- sendTextFrame("invalidatetiles:"
- " part=" + std::to_string(i) +
- " x=0" +
- " y=0" +
- " width=" + std::to_string(INT_MAX) +
- " height=" + std::to_string(INT_MAX));
- }
-
- lock.unlock();
-
- getStatus("", 0);
- }
+ getStatus("", 0);
break;
case LOK_CALLBACK_SET_PART:
sendTextFrame("setpart: " + payload);
More information about the Libreoffice-commits
mailing list