Skip to content

Commit f228d68

Browse files
author
brushtyler
committed
fix #1904
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15223 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 84bcae0 commit f228d68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/providers/grass/qgsgrassprovider.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ void QgsGrassProvider::updateMap( int mapId )
11051105
map->valid = false;
11061106
map->version++;
11071107

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

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

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

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

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

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

0 commit comments

Comments
 (0)