Skip to content

Commit d4582ca

Browse files
author
jef
committedNov 17, 2008

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎src/providers/grass/qgsgrassprovider.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,11 @@ int QgsGrassProvider::openMap( QString gisdbase, QString location, QString mapse
10401040
if ( level == 1 )
10411041
{
10421042
QgsGrass::resetError();
1043-
Vect_build( map.map, stderr );
1043+
#if GRASS_VERSION_MAJOR >= 6 && GRASS_VERSION_MINOR >= 4
1044+
Vect_build( map.map );
1045+
#else
1046+
Vect_build( map.map, stderr );
1047+
#endif
10441048

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

15221526
Vect_build_partial( map->map, GV_BUILD_NONE, NULL );
1527+
#if GRASS_VERSION_MAJOR >= 6 && GRASS_VERSION_MINOR >= 4
1528+
Vect_build( map.map );
1529+
#else
15231530
Vect_build( map->map, stderr );
1531+
#endif
15241532

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

0 commit comments

Comments
 (0)
Please sign in to comment.