Skip to content

Commit ea657a2

Browse files
author
timlinux
committed
Fixes for GRASS vector to work with current GRASS in trunk (from Markus Neteler)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9661 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2bad057 commit ea657a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugins/grass/qgsgrassplugin.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,12 @@ void QgsGrassPlugin::newVector()
479479
return;
480480
}
481481

482+
#if defined(GRASS_VERSION_MAJOR) && defined(GRASS_VERSION_MINOR) && \
483+
( ( GRASS_VERSION_MAJOR == 6 && GRASS_VERSION_MINOR >= 4 ) || GRASS_VERSION_MAJOR > 6 )
484+
Vect_build( &Map );
485+
#else
482486
Vect_build( &Map, stderr );
487+
#endif
483488
Vect_set_release_support( &Map );
484489
Vect_close( &Map );
485490

0 commit comments

Comments
 (0)