Skip to content
Permalink
Browse files
apply patch #364 from GRASS TRAC by Markus Neteler
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9655 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 17, 2008
1 parent 36a8fd0 commit d4582ca196a2f8c45025c1b1d848a5c59fbee6b7
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/providers/grass/qgsgrassprovider.cpp
@@ -1040,7 +1040,11 @@ int QgsGrassProvider::openMap( QString gisdbase, QString location, QString mapse
if ( level == 1 )
{
QgsGrass::resetError();
Vect_build( map.map, stderr );
#if GRASS_VERSION_MAJOR >= 6 && GRASS_VERSION_MINOR >= 4
Vect_build( map.map );
#else
Vect_build( map.map, stderr );
#endif

if ( QgsGrass::getError() == QgsGrass::FATAL )
{
@@ -1520,7 +1524,11 @@ bool QgsGrassProvider::closeEdit( bool newMap )
G__setenv(( char * ) "MAPSET", map->mapset.toAscii().data() );

Vect_build_partial( map->map, GV_BUILD_NONE, NULL );
#if GRASS_VERSION_MAJOR >= 6 && GRASS_VERSION_MINOR >= 4
Vect_build( map.map );
#else
Vect_build( map->map, stderr );
#endif

// If a new map was created close the map and return
if ( newMap )

0 comments on commit d4582ca

Please sign in to comment.