Skip to content
Permalink
Browse files
[GRASS] open full vector to get list of layers on win / G7
  • Loading branch information
blazek committed May 29, 2015
1 parent abe9fd0 commit bb374f08a50c2cb7bfde2792327fb69fd06a142a
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/grass/qgsgrass.cpp
@@ -1014,7 +1014,13 @@ QStringList GRASS_LIB_EXPORT QgsGrass::vectorLayers( const QString& gisdbase, co

G_TRY
{
// TODO: With Vect_open_old_head it crashes on Windows + GRASS 7 in Vect_cidx_get_type_count() when the first
// type is found. Try to open full map on win for now.
#if defined(Q_OS_WIN) && GRASS_VERSION_MAJOR >= 7
level = Vect_open_old( &map, ( char * ) mapName.toUtf8().data(), ( char * ) mapset.toUtf8().data() );
#else
level = Vect_open_old_head( &map, ( char * ) mapName.toUtf8().data(), ( char * ) mapset.toUtf8().data() );
#endif
}
G_CATCH( QgsGrass::Exception &e )
{

0 comments on commit bb374f0

Please sign in to comment.