Skip to content
Permalink
Browse files

fix #1460

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10596 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 19, 2009
1 parent ba0a1eb commit c772a068876a6115eb35465c4233d54593bb7d4b
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/providers/grass/qgsgrassprovider.cpp
@@ -1165,7 +1165,12 @@ void QgsGrassProvider::closeMap( int mapId )

if ( mMaps[mapId].valid )
{
bool mapsetunset = G__getenv( "MAPSET" )==NULL || *G__getenv( "MAPSET" )==0;
if( mapsetunset )
G__setenv(( char * )"MAPSET", mMaps[mapId].mapset.toAscii().data() );
Vect_close( mMaps[mapId].map );
if( mapsetunset )
G__setenv(( char * )"MAPSET", "" );
}
mMaps[mapId].valid = false;
}
@@ -1320,7 +1325,7 @@ QgsCoordinateReferenceSystem QgsGrassProvider::crs()
struct Key_Value *projunits = G_get_projunits();
char *wkt = GPJ_grass_to_wkt( projinfo, projunits, 0, 0 );
Wkt = QString( wkt );
free( wkt );
G_free( wkt );
}

setlocale( LC_NUMERIC, oldlocale );

0 comments on commit c772a06

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