From 393db38ce28573aaa6644948e7521b7c78045ee6 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Mon, 27 May 2019 12:07:00 -0400 Subject: [PATCH] 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 --- kit/ChildSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp index a229ae5f0..b3ee31b0a 100644 --- a/kit/ChildSession.cpp +++ b/kit/ChildSession.cpp @@ -569,7 +569,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() << "].");