Related tdf#40713, use DecodeMechanism::Unambiguous

Change-Id: I73221fb6c127903398a7faae48d5247339ec8d7f
Reviewed-on: https://gerrit.libreoffice.org/39214
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Jenkins <ci@libreoffice.org>
This commit is contained in:
Julien Nabet
2017-06-24 16:02:51 +02:00
parent 6ade3ef203
commit ee60c441dc

View File

@@ -2382,7 +2382,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed )
// tdf#40713: don't lose dbt file
// if aDbtFile corresponds exactly to aTmpFile, we just have to return
if (aDbtFile.GetMainURL( INetURLObject::DecodeMechanism::NONE ) == aTmpFile.GetMainURL( INetURLObject::DecodeMechanism::NONE ))
if (aDbtFile.GetMainURL( INetURLObject::DecodeMechanism::Unambiguous ) == aTmpFile.GetMainURL( INetURLObject::DecodeMechanism::Unambiguous ))
return bRet;
if ( IsDocument( aDbtFile ) && !KillFile( aDbtFile ) )