loolwsd/LOOLSession.cpp | 2 ++ 1 file changed, 2 insertions(+) New commits: commit fbbf364aa9f5919c97c885e490a92f594502c38b Author: Mihai Varga <mihai.va...@collabora.com> Date: Mon Dec 14 15:55:34 2015 +0200
loolwsd: initialize the tile to transparent diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp index 7319fc0..fbfea8b 100644 --- a/loolwsd/LOOLSession.cpp +++ b/loolwsd/LOOLSession.cpp @@ -1207,6 +1207,8 @@ void ChildProcessSession::sendTile(const char* /*buffer*/, int /*length*/, Strin std::memcpy(output.data(), response.data(), response.size()); unsigned char *pixmap = new unsigned char[4 * width * height]; + memset(pixmap, 0, 4 * width * height); + if (_docType != "text" && part != _loKitDocument->pClass->getPart(_loKitDocument)) { _loKitDocument->pClass->setPart(_loKitDocument, part); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits