Skip to content
Permalink
Browse files

update extent on delete feature and updategeometry

  • Loading branch information
m-kuhn committed Jun 23, 2013
1 parent 6afd3f7 commit ab54176a55e3776aeeb9b13bff68fc5ee3cf07e6
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/core/qgsvectorlayer.cpp
@@ -2440,9 +2440,9 @@ bool QgsVectorLayer::changeGeometry( QgsFeatureId fid, QgsGeometry* geom )
return false;
}

return mEditBuffer->changeGeometry( fid, geom );

updateExtents();

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


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

updateExtents();

return res;
}

0 comments on commit ab54176

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