sfx2/source/doc/guisaveas.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6592afdd7d6e8a56e1450131a2d0a2b652eb6f82 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jul 21 12:38:32 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jul 21 15:05:05 2020 +0200 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 <caol...@redhat.com> 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; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits