diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-26 12:59:09 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-02-26 14:59:55 +0100 |
commit | 145188f674ccf2a0e485ba85a018b04ef21fcf53 (patch) | |
tree | efd756a37f6848195f3a71643adcb0b4f8a4b975 | |
parent | 16c4fefc3dc99dee21a1ea178cd227edc3b0d1b3 (diff) |
Revert "lok: fix export pdf error"
this would silence an error if pdf export failed, I think the
export warning we see is from svg export, and from a failed
attempt to export a selection for a svg preview, which
"return early without error if no shape is selected"
attempt to address in an alternative approach
This reverts commit 74d22a7dad84f4abff1819764b8c407d89bb0985.
Change-Id: Ic2a54fddea2e5912e27184c7fa0a1e39b84b5886
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163944
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 34776cdd95ea..ab05b4604084 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -3239,9 +3239,7 @@ void SfxBaseModel::impl_store( const OUString& sURL SfxGetpApp()->NotifyEvent( SfxEventHint( bSaveTo ? SfxEventHintId::SaveToDocFailed : SfxEventHintId::SaveAsDocFailed, GlobalEventConfig::GetEventName( bSaveTo ? GlobalEventId::SAVETODOCFAILED : GlobalEventId::SAVEASDOCFAILED), m_pData->m_pObjectShell.get() ) ); - if ( comphelper::LibreOfficeKit::isActive() && - aFilterName.indexOf("pdf_Export") > 0 && - SfxViewShell::Current() ) + if ( comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() ) SfxViewShell::Current()->libreOfficeKitViewCallback( LOK_CALLBACK_EXPORT_FILE, "ERROR" ); std::stringstream aErrCode; |