[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 21 13:05:46 UTC 2020


 sfx2/source/doc/guisaveas.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6592afdd7d6e8a56e1450131a2d0a2b652eb6f82
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jul 21 12:38:32 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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;
         }
     }


More information about the Libreoffice-commits mailing list