[QGIS Commit] r13159 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Mar 25 06:16:27 EDT 2010


Author: rblazek
Date: 2010-03-25 06:16:26 -0400 (Thu, 25 Mar 2010)
New Revision: 13159

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassselect.cpp
Log:
disabled Vect_close if map cannot be opened on level2 on win to test ticket 2003

Modified: trunk/qgis/src/plugins/grass/qgsgrassselect.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassselect.cpp	2010-03-25 09:36:57 UTC (rev 13158)
+++ trunk/qgis/src/plugins/grass/qgsgrassselect.cpp	2010-03-25 10:16:26 UTC (rev 13159)
@@ -413,7 +413,12 @@
   {
     QgsDebugMsg( "Cannot open vector on level 2" );
     QMessageBox::warning( 0, tr( "Warning" ), tr( "Cannot open vector %1 in mapset %2 on level 2 (topology not available, try to rebuild topology using v.build module)." ).arg( mapName ).arg( mapset ) );
+    // Vect_close here is correct, it should work, but it seems to cause 
+    // crash on win http://trac.osgeo.org/qgis/ticket/2003
+    // disabled on win test it
+#if !defined(WIN32)
     Vect_close( &map );
+#endif
     return list;
   } 
   else if ( level < 1 )



More information about the QGIS-commit mailing list