Skip to content
Permalink
Browse files

fix #1904

git-svn-id: http://svn.osgeo.org/qgis/trunk@15223 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler
brushtyler committed Feb 20, 2011
1 parent 4f82c34 commit a1887c3f4bfd5cd53573eed86e3fdbfb0771e5b0
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/grass/qgsgrassprovider.cpp
@@ -1105,7 +1105,7 @@ void QgsGrassProvider::updateMap( int mapId )
map->valid = false;
map->version++;

QgsGrass::setLocation( map->gisdbase.toUtf8().constData(), map->location.toUtf8().constData() );
QgsGrass::setLocation( map->gisdbase, map->location );

// TODO: Should be done better / in other place ?
// TODO: Is it necessary for close ?
@@ -1483,7 +1483,7 @@ bool QgsGrassProvider::startEdit( void )
GMAP *map = &( mMaps[mLayers[mLayerId].mapId] );
map->valid = false;

QgsGrass::setLocation( map->gisdbase.toUtf8().constData(), map->location.toUtf8().constData() );
QgsGrass::setLocation( map->gisdbase, map->location );

// Set current mapset (mapset was previously checked by isGrassEditable() )
// TODO: Should be done better / in other place ?
@@ -1559,7 +1559,7 @@ bool QgsGrassProvider::closeEdit( bool newMap )
map->valid = false;
map->version++;

QgsGrass::setLocation( map->gisdbase.toUtf8().constData(), map->location.toUtf8().constData() );
QgsGrass::setLocation( map->gisdbase, map->location );

// Set current mapset (mapset was previously checked by isGrassEditable() )
// TODO: Should be done better / in other place ?

0 comments on commit a1887c3

Please sign in to comment.
You can’t perform that action at this time.