[QGIS Commit] r14755 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Nov 23 19:10:55 EST 2010


Author: jef
Date: 2010-11-23 16:10:55 -0800 (Tue, 23 Nov 2010)
New Revision: 14755

Modified:
   trunk/qgis/src/core/qgsvectorlayer.cpp
Log:
also save edit types and actions for geometry-less layers

Modified: trunk/qgis/src/core/qgsvectorlayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsvectorlayer.cpp	2010-11-23 23:02:56 UTC (rev 14754)
+++ trunk/qgis/src/core/qgsvectorlayer.cpp	2010-11-24 00:10:55 UTC (rev 14755)
@@ -2562,12 +2562,9 @@
   }
 
   QString errorMsg;
-  if ( geometryType() != QGis::NoGeometry )
+  if ( !readSymbology( layer_node, errorMsg ) )
   {
-    if ( !readSymbology( layer_node, errorMsg ) )
-    {
-      return false;
-    }
+    return false;
   }
 
   return mValid;               // should be true if read successfully



More information about the QGIS-commit mailing list