Skip to content
Permalink
Browse files

set edited features valid to prevent them from disappearing from screen

git-svn-id: http://svn.osgeo.org/qgis/trunk@10280 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 15, 2009
1 parent ebf7ac1 commit 2f700ce4d067b2acbf8dc52a97b63712369a5792
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsvectorlayer.cpp
@@ -1261,6 +1261,7 @@ bool QgsVectorLayer::nextFeature( QgsFeature &f )
continue;

f.setFeatureId( fid );
f.setValid(true);

if ( mFetchGeometry )
f.setGeometry( mFetchChangedGeomIt.value() );
@@ -1318,6 +1319,7 @@ bool QgsVectorLayer::nextFeature( QgsFeature &f )
continue;

f.setFeatureId( fid );
f.setValid(true);

if ( mFetchGeometry )
f.setGeometry( *mFetchAddedFeaturesIt->geometry() );
@@ -1362,6 +1364,7 @@ bool QgsVectorLayer::featureAtId( int featureId, QgsFeature& f, bool fetchGeomet
if ( fetchGeometries && mChangedGeometries.contains( featureId ) )
{
f.setFeatureId( featureId );
f.setValid(true);
f.setGeometry( mChangedGeometries[featureId] );

if ( fetchAttributes )
@@ -1403,7 +1406,7 @@ bool QgsVectorLayer::featureAtId( int featureId, QgsFeature& f, bool fetchGeomet
if ( iter->id() == featureId )
{
f.setFeatureId( iter->id() );

f.setValid(true);
if ( fetchGeometries )
f.setGeometry( *iter->geometry() );

0 comments on commit 2f700ce

Please sign in to comment.
You can’t perform that action at this time.