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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Mar 15 17:00:09 EDT 2009


Author: mhugent
Date: 2009-03-15 17:00:09 -0400 (Sun, 15 Mar 2009)
New Revision: 10280

Modified:
   trunk/qgis/src/core/qgsvectorlayer.cpp
Log:
set edited features valid to prevent them from disappearing from screen

Modified: trunk/qgis/src/core/qgsvectorlayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsvectorlayer.cpp	2009-03-14 21:54:08 UTC (rev 10279)
+++ trunk/qgis/src/core/qgsvectorlayer.cpp	2009-03-15 21:00:09 UTC (rev 10280)
@@ -1261,6 +1261,7 @@
           continue;
 
         f.setFeatureId( fid );
+        f.setValid(true);
 
         if ( mFetchGeometry )
           f.setGeometry( mFetchChangedGeomIt.value() );
@@ -1318,6 +1319,7 @@
         continue;
 
       f.setFeatureId( fid );
+      f.setValid(true);
 
       if ( mFetchGeometry )
         f.setGeometry( *mFetchAddedFeaturesIt->geometry() );
@@ -1362,6 +1364,7 @@
   if ( fetchGeometries && mChangedGeometries.contains( featureId ) )
   {
     f.setFeatureId( featureId );
+    f.setValid(true);
     f.setGeometry( mChangedGeometries[featureId] );
 
     if ( fetchAttributes )
@@ -1403,7 +1406,7 @@
     if ( iter->id() == featureId )
     {
       f.setFeatureId( iter->id() );
-
+      f.setValid(true);
       if ( fetchGeometries )
         f.setGeometry( *iter->geometry() );
 



More information about the QGIS-commit mailing list