Skip to content
Permalink
Browse files
Fixes for GRASS vector to work with current GRASS in trunk (from Mark…
…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 2bad0575a0a343fe8d91afa0f15752e81d401698
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/grass/qgsgrassprovider.cpp
@@ -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

0 comments on commit 2bad057

Please sign in to comment.