Skip to content

Commit dcf060a

Browse files
author
rblazek
committed
do not use empty input
git-svn-id: http://svn.osgeo.org/qgis/trunk@12914 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1378fa4 commit dcf060a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plugins/grass/qgsgrassmodule.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,13 +2441,13 @@ QStringList QgsGrassModuleInput::options()
24412441
// TODO: this is hack for network nodes, do it somehow better
24422442
if ( mMapId.isEmpty() )
24432443
{
2444-
opt = mKey + "=";
2445-
24462444
if ( current < mMaps.size() )
24472445
{
2448-
opt.append( mMaps[current] );
2446+
if ( ! mMaps[current].isEmpty() )
2447+
{
2448+
list.push_back( mKey + "=" + mMaps[current] );
2449+
}
24492450
}
2450-
list.push_back( opt );
24512451
}
24522452

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

0 commit comments

Comments
 (0)