Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for #1779.
git-svn-id: http://svn.osgeo.org/qgis/trunk@11083 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rugginoso committed Jul 15, 2009
1 parent 9752661 commit 68f9378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/grass/qgsgrassmapcalc.cpp
Expand Up @@ -834,7 +834,7 @@ void QgsGrassMapcalc::updateMaps()
QgsDebugMsg( "entered." );
QString current = mMapComboBox->currentText();
mMapComboBox->clear();
mMaps.resize( 0 );
mMaps.clear();

QgsMapCanvas *canvas = mIface->mapCanvas();

Expand Down Expand Up @@ -882,7 +882,7 @@ void QgsGrassMapcalc::updateMaps()
//if ( mUpdate && mapset != QgsGrass::getDefaultMapset() ) continue;

mMapComboBox->addItem( layer->name() );
if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
//if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
mMaps.push_back( map + "@" + mapset );
}
}
Expand Down

0 comments on commit 68f9378

Please sign in to comment.