Skip to content
Permalink
Browse files
[BACKPORT] add extension to new GPX file if user ommit it (fix #4623)
  • Loading branch information
alexbruy committed Dec 16, 2011
1 parent 8618836 commit c47e9eddf209a8095c8f846be80e54ea9cf00372
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/plugins/gps_importer/qgsgpsplugin.cpp
@@ -166,6 +166,10 @@ void QgsGPSPlugin::createGPX()
tr( "GPS eXchange file (*.gpx)" ) );
if ( !fileName.isEmpty() )
{
if ( !fileName.toLower().endsWith( ".gpx" ) )
{
fileName += ".gpx";
}
QFileInfo fileInfo( fileName );
std::ofstream ofs( fileName.toUtf8() );
if ( !ofs )

0 comments on commit c47e9ed

Please sign in to comment.