[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sfx2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 19 15:15:03 UTC 2020
sfx2/source/doc/objmisc.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit ac65ade24aa10c0a39d7d38576ad54bd00724455
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jun 8 21:22:58 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 19 17:14:31 2020 +0200
tdf#128006 allow documents inside odbs to be as trusted as their container
Change-Id: Id19d3805ef2e3282c1a8e89dd8edcccbf4ac4db6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96210
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index e3e07dd5c306..7f0656d7b310 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -1744,7 +1744,12 @@ OUString SfxObjectShell_Impl::getDocumentLocation() const
// for documents made from a template: get the name of the template
sLocation = rDocShell.getDocProperties()->getTemplateURL();
}
+
+ // tdf#128006 take document base url as location
+ if (sLocation.isEmpty())
+ sLocation = rDocShell.getDocumentBaseURL();
}
+
return sLocation;
}
More information about the Libreoffice-commits
mailing list