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/qgis@10280 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 15, 2009
1 parent 19297d8 commit 4251ec7a824b3ef59357bf3512fd40bd4cf9a1a6
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 4251ec7

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