diff options
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index b1f96440fb8a..0908d025852d 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -3637,7 +3637,8 @@ OUString GetLogicBase(const INetURLObject& rURL, std::unique_ptr<SfxMedium_Impl> (void) pImpl; #else - if (rURL.GetProtocol() == INetProtocol::File && !pImpl->m_pInStream) + if (!pImpl->m_bHasEmbeddedObjects // Embedded objects would mean a special base, ignore that. + && rURL.GetProtocol() == INetProtocol::File && !pImpl->m_pInStream) { // Try to create the temp file in the same directory when storing. INetURLObject aURL(rURL); @@ -3645,10 +3646,6 @@ OUString GetLogicBase(const INetURLObject& rURL, std::unique_ptr<SfxMedium_Impl> aLogicBase = aURL.GetMainURL(INetURLObject::DecodeMechanism::WithCharset); } - if (pImpl->m_bHasEmbeddedObjects) - // Embedded objects would mean a special base, ignore that. - aLogicBase.clear(); - #endif // !HAVE_FEATURE_MACOSX_SANDBOX return aLogicBase; |