summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-21 12:38:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-21 15:05:05 +0200
commit6592afdd7d6e8a56e1450131a2d0a2b652eb6f82 (patch)
treee3ced3117d2b9f79da0d88531abc91f86f357a91 /sfx2
parent0f288cf2df790d5cd13511471e0216c46c0564b5 (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-xsfx2/source/doc/guisaveas.cxx2
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;
}
}