diff options
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 645cbc81f3d2..29bb07b03e6e 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2144,7 +2144,7 @@ void SfxMedium::TransactedTransferForFS_Impl( const INetURLObject& aSource, pImpl->pTempFile.reset(); } } - else if ( bTransactStarted ) + else if ( bTransactStarted && pImpl->m_eError != ERRCODE_ABORT ) { UseBackupToRestore_Impl( aOriginalContent, xDummyEnv ); } diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 37f131d08098..4434e3ca855b 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1020,7 +1020,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) { if (comphelper::LibreOfficeKit::isActive()) sendErrorToLOK(lErr); - else + else if (!(lErr == ERRCODE_IO_GENERAL && bIsPDFExport)) { SfxErrorContext aEc(ERRCTX_SFX_SAVEASDOC,GetTitle()); ErrorHandler::HandleError(lErr, pDialogParent); |