kit/ChildSession.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3de6e2b2ee363da30484e2aabc0a6ddef26aa5a3
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Mon May 27 12:07:00 2019 -0400
Commit:     Andras Timar <andras.ti...@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 <ke...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@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() << 
"].");
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to