We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 18a797c commit 0fb356eCopy full SHA for 0fb356e
src/providers/grass/qgsgrass.cpp
@@ -2453,7 +2453,20 @@ struct Map_info *QgsGrass::vectNewMapStruct()
2453
// -> allocate more space on all systems
2454
2455
// TODO: replace by Vect_new_map_struct once it appears in GRASS
2456
+ // Patch supplied: https://trac.osgeo.org/grass/ticket/2729
2457
+#if GRASS_VERSION_MAJOR > 999
2458
+ G_TRY
2459
+ {
2460
+ return Vect_new_map_struct();
2461
+ }
2462
+ G_CATCH( QgsGrass::Exception &e ) // out of memory
2463
2464
+ warning( e );
2465
+ return 0;
2466
2467
+#else
2468
return ( struct Map_info* ) qgsMalloc( 2*sizeof( struct Map_info ) );
2469
+#endif
2470
}
2471
2472
void QgsGrass::vectDestroyMapStruct( struct Map_info *map )
0 commit comments