[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4-0' - kit/ChildSession.cpp
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jan 20 17:24:43 UTC 2020
kit/ChildSession.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3de6e2b2ee363da30484e2aabc0a6ddef26aa5a3
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Mon May 27 12:07:00 2019 -0400
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Mon Jan 20 18:24:25 2020 +0100
kit: take ownership when saving a document template
Otherwise, it causes error log:
ERR Cannot save docKey [/filename], the .uno:Save has failed in LOK.
Change-Id: Ic99807848def72f76471c4f999ebeed9a7c0a2c8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87085
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index ea7d26cd2..23224c3f8 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -582,7 +582,7 @@ bool ChildSession::loadDocument(const char * /*buffer*/, int /*length*/, const s
if (!doctemplate.empty())
{
std::string url = getJailedFilePath();
- bool success = getLOKitDocument()->saveAs(url.c_str(), nullptr, nullptr);
+ bool success = getLOKitDocument()->saveAs(url.c_str(), nullptr, "TakeOwnership");
if (!success)
{
LOG_ERR("Failed to save template [" << getJailedFilePath() << "].");
More information about the Libreoffice-commits
mailing list