Skip to content

Commit

Permalink
do not use empty input
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12914 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 10, 2010
1 parent 1378fa4 commit dcf060a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -2441,13 +2441,13 @@ QStringList QgsGrassModuleInput::options()
// TODO: this is hack for network nodes, do it somehow better
if ( mMapId.isEmpty() )
{
opt = mKey + "=";

if ( current < mMaps.size() )
{
opt.append( mMaps[current] );
if ( ! mMaps[current].isEmpty() )
{
list.push_back( mKey + "=" + mMaps[current] );
}
}
list.push_back( opt );
}

if ( !mGeometryTypeOption.isNull() && current < mGeometryTypes.size() )
Expand Down

0 comments on commit dcf060a

Please sign in to comment.