Skip to content

Commit ab54176

Browse files
committed
update extent on delete feature and updategeometry
1 parent 6afd3f7 commit ab54176

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/qgsvectorlayer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,9 +2440,9 @@ bool QgsVectorLayer::changeGeometry( QgsFeatureId fid, QgsGeometry* geom )
24402440
return false;
24412441
}
24422442

2443-
return mEditBuffer->changeGeometry( fid, geom );
2444-
24452443
updateExtents();
2444+
2445+
return mEditBuffer->changeGeometry( fid, geom );
24462446
}
24472447

24482448

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

2543+
updateExtents();
2544+
25432545
return res;
25442546
}
25452547

0 commit comments

Comments
 (0)