diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-21 12:38:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-21 15:05:05 +0200 |
commit | 6592afdd7d6e8a56e1450131a2d0a2b652eb6f82 (patch) | |
tree | e3ced3117d2b9f79da0d88531abc91f86f357a91 /sfx2 | |
parent | 0f288cf2df790d5cd13511471e0216c46c0564b5 (diff) |
Related: tdf#121191 check what filter was used for export
Change-Id: Ibf7fd1f1ba0d21f63933c7f6a57daaca9502c71b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99136
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rwxr-xr-x | sfx2/source/doc/guisaveas.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index 6e26bacd8078..2eadf26ed64d 100755 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -1609,7 +1609,7 @@ bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >& xMo { bDialogUsed = true; // check if the file is a pdf or not and change the storing mode at convenience - if ( aURL.GetFileExtension().equalsIgnoreAsciiCase( "pdf" ) ) + if (aFilterName.endsWith("pdf_Export")) nStoreMode = EXPORT_REQUESTED | PDFEXPORT_REQUESTED; } } |