Skip to content

Commit

Permalink
Update discoveryplugin.py
Browse files Browse the repository at this point in the history
Bug fix for Issue lutraconsulting#90, Uncaught TypeError: QgsRubberBand(): argument 2 has unexpected type 'bool'
  • Loading branch information
gangerang authored Apr 30, 2023
1 parent 5b6fa6e commit ded6054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discovery/discoveryplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __init__(self, _iface):
self.marker2.setVisible(False)
self.is_displayed = False

self.rubber_band = QgsRubberBand(iface.mapCanvas(), False)
self.rubber_band = QgsRubberBand(iface.mapCanvas(), QgsWkbTypes.PolygonGeometry)
self.rubber_band.setVisible(False)
self.rubber_band.setWidth(3)
self.rubber_band.setStrokeColor(QColor(226, 27, 28))
Expand Down

0 comments on commit ded6054

Please sign in to comment.