Skip to content

Commit

Permalink
apply patch #364 from GRASS TRAC by Markus Neteler
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9655 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 17, 2008
1 parent 88844db commit a81a455
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/providers/grass/qgsgrassprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit a81a455

Please sign in to comment.