Skip to content

Commit

Permalink
raster name in legend
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4924 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 28, 2006
1 parent 804cc45 commit ef5bb07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/grass/qgsgrassplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,10 @@ void QgsGrassPlugin::addRaster()
QString name = uri.right( uri.length() - pos - 1 );
name.replace('/', ' ');

qGisInterface->addRasterLayer( uri );
//qGisInterface->addRasterLayer( uri );
QgsRasterLayer *layer = new QgsRasterLayer( uri, sel->map );
qGisInterface->addRasterLayer(layer);

mCanvas->refresh();
}
}
Expand Down

0 comments on commit ef5bb07

Please sign in to comment.