[Libreoffice-commits] online.git: loolwsd/LOOLKit.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Aug 22 04:59:54 UTC 2016
loolwsd/LOOLKit.cpp | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 119d2c862c5a94b342ea46d929f84fbfd05d5912
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Thu Aug 18 23:13:21 2016 -0400
loolwsd: don't render tiles when no views exists
Change-Id: Ic7bc72384372961752dc68671b0dd20f592cb669
Reviewed-on: https://gerrit.libreoffice.org/28292
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp
index 9e6b6d5..8123c7b 100644
--- a/loolwsd/LOOLKit.cpp
+++ b/loolwsd/LOOLKit.cpp
@@ -626,6 +626,12 @@ public:
return;
}
+ if (_loKitDocument->getViews() <= 0)
+ {
+ Log::error("Tile rendering requested without views.");
+ return;
+ }
+
Timestamp timestamp;
_loKitDocument->paintPartTile(pixmap.data(), tile.getPart(),
tile.getWidth(), tile.getHeight(),
More information about the Libreoffice-commits
mailing list