Skip to content

Commit

Permalink
[FIX] - Fix crash with info dock
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Sep 27, 2018
1 parent 714e85e commit ac1649a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/roam/infodock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac1649a

Please sign in to comment.