Skip to content

Commit

Permalink
update extent on delete feature and updategeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 23, 2013
1 parent 6afd3f7 commit ab54176
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -2440,9 +2440,9 @@ bool QgsVectorLayer::changeGeometry( QgsFeatureId fid, QgsGeometry* geom )
return false;
}

return mEditBuffer->changeGeometry( fid, geom );

updateExtents();

return mEditBuffer->changeGeometry( fid, geom );
}


Expand Down Expand Up @@ -2540,6 +2540,8 @@ bool QgsVectorLayer::deleteFeature( QgsFeatureId fid )
if ( res )
mSelectedFeatureIds.remove( fid ); // remove it from selection

updateExtents();

return res;
}

Expand Down

0 comments on commit ab54176

Please sign in to comment.