From ded60549a5eb00dffb842cfa08a2f117c4794a14 Mon Sep 17 00:00:00 2001 From: gangerang <87283894+gangerang@users.noreply.github.com> Date: Sun, 30 Apr 2023 21:32:10 +1000 Subject: [PATCH] Update discoveryplugin.py Bug fix for Issue #90, Uncaught TypeError: QgsRubberBand(): argument 2 has unexpected type 'bool' --- Discovery/discoveryplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Discovery/discoveryplugin.py b/Discovery/discoveryplugin.py index 3790b2c..6e2babf 100644 --- a/Discovery/discoveryplugin.py +++ b/Discovery/discoveryplugin.py @@ -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))