kit/ChildSession.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)
New commits: commit d118ea2bccfe0c182e51746ed08486e346076a03 Author: Jan Holesovsky <ke...@collabora.com> Date: Tue Jan 17 19:15:56 2017 +0100 partpagerectangles is useless, and causes trouble for many documents. When invoked too early after the document load, on slower servers it is executed before the layout of the document is performed, leading to crashes. It is useless for loleaflet, so let's disable it here, and remove it in master for good. Change-Id: Icf08d9df5efc8b0488c94048803e703b40f67e24 Reviewed-on: https://gerrit.libreoffice.org/35574 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> Tested-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp index d2b89156..56a63b3e 100644 --- a/kit/ChildSession.cpp +++ b/kit/ChildSession.cpp @@ -499,16 +499,9 @@ bool ChildSession::getCommandValues(const char* /*buffer*/, int /*length*/, Stri bool ChildSession::getPartPageRectangles(const char* /*buffer*/, int /*length*/) { - char* partPage = nullptr; - { - std::unique_lock<std::mutex> lock(_docManager.getDocumentMutex()); - - getLOKitDocument()->setView(_viewId); - partPage = getLOKitDocument()->getPartPageRectangles(); - } - - sendTextFrame("partpagerectangles: " + std::string(partPage)); - std::free(partPage); + // We don't support partpagerectangles any more, will be removed in the + // next version + sendTextFrame("partpagerectangles: "); return true; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits