diff options
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 2e4ac54ba75c..59dd5307877c 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -3393,9 +3393,9 @@ void SfxMedium::CreateTempFile( bool bReplace ) } OUString aLogicBase; - if (comphelper::isFileUrl(pImpl->m_aLogicName)) + if (comphelper::isFileUrl(pImpl->m_aLogicName) && !pImpl->m_pInStream) { - // Try to create the temp file in the same directory. + // Try to create the temp file in the same directory when storing. sal_Int32 nOffset = pImpl->m_aLogicName.lastIndexOf("/"); if (nOffset != -1) aLogicBase = pImpl->m_aLogicName.copy(0, nOffset); |