Skip to content

Commit

Permalink
fix #1904
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15223 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Feb 20, 2011
1 parent 4f82c34 commit a1887c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/grass/qgsgrassprovider.cpp
Expand Up @@ -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 ?
Expand Down Expand Up @@ -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 ?
Expand Down Expand Up @@ -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 ?
Expand Down

0 comments on commit a1887c3

Please sign in to comment.