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
This commit is contained in:
parent
635f0627f2
commit
393db38ce2
1 changed files with 1 additions and 1 deletions
|
@ -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() << "].");
|
||||
|
|
Loading…
Reference in a new issue