Kaydet (Commit) 1663b1e8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

tdf#120736: For Calc shared documents also check the original document URL

...as instead of the original shared document, a temporary copy (with a file URL
denoting a temporary directory, like <file:///tmp/lulmhoxl.tmp/0.ods>) is opened
in that case.

Change-Id: I415f5a0ec44ee06f7ca98495f0e8f032ba93e05c
Reviewed-on: https://gerrit.libreoffice.org/68391
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst ea58b039
......@@ -470,7 +470,10 @@ void ScDocShell::Execute( SfxRequest& rReq )
&& !(SvtSecurityOptions()
.isTrustedLocationUriForUpdatingLinks(
GetMedium() == nullptr
? OUString() : GetMedium()->GetName())))
? OUString() : GetMedium()->GetName())
|| (IsDocShared()
&& SvtSecurityOptions().isTrustedLocationUriForUpdatingLinks(
GetSharedFileURL()))))
{
nSet = LM_ON_DEMAND;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment