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 8618836 commit c47e9edCopy full SHA for c47e9ed
src/plugins/gps_importer/qgsgpsplugin.cpp
@@ -166,6 +166,10 @@ void QgsGPSPlugin::createGPX()
166
tr( "GPS eXchange file (*.gpx)" ) );
167
if ( !fileName.isEmpty() )
168
{
169
+ if ( !fileName.toLower().endsWith( ".gpx" ) )
170
+ {
171
+ fileName += ".gpx";
172
+ }
173
QFileInfo fileInfo( fileName );
174
std::ofstream ofs( fileName.toUtf8() );
175
if ( !ofs )
0 commit comments