Skip to content

Commit

Permalink
fix #2202
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12343 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 6, 2009
1 parent 4bc0811 commit 8006e3c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/plugins/gps_importer/qgsbabelformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ QStringList QgsBabelCommand::importCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( featuretype );
else if ( *iter == "%in" )
copy.append( input );
copy.append( QString("\"%1\"").arg( input ) );
else if ( *iter == "%out" )
copy.append( output );
copy.append( QString("\"%1\"").arg( output ) );
else
copy.append( *iter );
}
Expand All @@ -171,9 +171,9 @@ QStringList QgsBabelCommand::exportCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( featuretype );
else if ( *iter == "%in" )
copy.append( input );
copy.append( QString("\"%1\"").arg( input ) );
else if ( *iter == "%out" )
copy.append( output );
copy.append( QString("\"%1\"").arg( output ) );
else
copy.append( *iter );
}
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/gps_importer/qgsgpsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ QStringList QgsGPSDevice::importCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( type );
else if ( *iter == "%in" )
copy.append( in );
copy.append( QString( "\"%1\"").arg( in ) );
else if ( *iter == "%out" )
copy.append( out );
copy.append( QString( "\"%1\"").arg( out ) );
else
copy.append( *iter );
}
Expand Down Expand Up @@ -90,9 +90,9 @@ QStringList QgsGPSDevice::exportCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( type );
else if ( *iter == "%in" )
copy.append( in );
copy.append( QString("\"%1\"").arg( in ) );
else if ( *iter == "%out" )
copy.append( out );
copy.append( QString("\"%1\"").arg( out ) );
else
copy.append( *iter );
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/gps_importer/qgsgpsplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ void QgsGPSPlugin::convertGPSFile( QString inputFileName,

// try to start the gpsbabel process
QStringList babelArgs;
babelArgs << mBabelPath << "-i" << "gpx" << "-f" << inputFileName
<< convertStrings << "-o" << "gpx" << "-F" << outputFileName;
babelArgs << mBabelPath << "-i" << "gpx" << "-f" << QString("\"%1\"").arg( inputFileName )
<< convertStrings << "-o" << "gpx" << "-F" << QString("\"%1\"").arg( outputFileName );
QgsDebugMsg( QString( "Conversion command: " ) + babelArgs.join( "|" ) );

QProcess babelProcess;
Expand Down

0 comments on commit 8006e3c

Please sign in to comment.