Skip to content

Commit

Permalink
Fixes for GRASS vector to work with current GRASS in trunk (from Mark…
Browse files Browse the repository at this point in the history
…us Neteler)

git-svn-id: http://svn.osgeo.org/qgis/trunk@9660 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 17, 2008
1 parent dd2a884 commit 2bad057
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/grass/qgsgrassprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1524,11 +1524,12 @@ bool QgsGrassProvider::closeEdit( bool newMap )
// TODO: Is it necessary for build/close ?
G__setenv(( char * ) "MAPSET", map->mapset.toAscii().data() );

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

Expand Down

0 comments on commit 2bad057

Please sign in to comment.