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