diff --git a/src/roam/infodock.py b/src/roam/infodock.py index cb86d96aa..bf1cc30db 100644 --- a/src/roam/infodock.py +++ b/src/roam/infodock.py @@ -377,7 +377,8 @@ def update(self, cursor): self.deleteFeatureButton.setVisible(deletefeature) self.quickInspectButton.setVisible('inspection' in tools) self.editButton.setVisible(editattributes) - geom = cursor.feature.geometry() + feature = cursor.feature + geom = feature.geometry() geomtype = geom.type() if geomtype == QGis.Polygon and geom.isMultipart(): editgeom = False