We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 42b6d02 commit c336ecaCopy full SHA for c336eca
src/plugins/gps_importer/qgsgpsplugin.cpp
@@ -164,6 +164,10 @@ void QgsGPSPlugin::createGPX()
164
tr( "GPS eXchange file (*.gpx)" ) );
165
if ( !fileName.isEmpty() )
166
{
167
+ if ( !fileName.toLower().endsWith( ".gpx" ) )
168
+ {
169
+ fileName += ".gpx";
170
+ }
171
QFileInfo fileInfo( fileName );
172
std::ofstream ofs( fileName.toUtf8() );
173
if ( !ofs )
0 commit comments