[QGIS Commit] r13512 - trunk/qgis/src/plugins/georeferencer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon May 17 02:41:55 EDT 2010


Author: mhugent
Date: 2010-05-17 02:41:51 -0400 (Mon, 17 May 2010)
New Revision: 13512

Modified:
   trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp
Log:
Automatically append pdf suffix for georef report

Modified: trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp
===================================================================
--- trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp	2010-05-16 21:25:25 UTC (rev 13511)
+++ trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp	2010-05-17 06:41:51 UTC (rev 13512)
@@ -216,6 +216,10 @@
   QString outputFileName = QFileDialog::getSaveFileName( 0, tr( "Select save PDF file" ), myLastUsedDir, tr( "PDF Format" ) + " (*.pdf *PDF)" );
   if ( !outputFileName.isNull() )
   {
+    if ( !outputFileName.endsWith( ".pdf", Qt::CaseInsensitive ) )
+    {
+      outputFileName.append( ".pdf" );
+    }
     mReportFileLineEdit->setText( outputFileName );
   }
 }



More information about the QGIS-commit mailing list