From da97a86efc01b3b9fc01d48d82239b9945d3bb4a Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Wed, 13 Jun 2018 15:54:06 -0400 Subject: [PATCH] fix temp rubber band --- tools/qgepmaptooladdfeature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qgepmaptooladdfeature.py b/tools/qgepmaptooladdfeature.py index 5e555e51..18ead1e9 100644 --- a/tools/qgepmaptooladdfeature.py +++ b/tools/qgepmaptooladdfeature.py @@ -249,7 +249,7 @@ def left_clicked(self, event): self.last_snapping_match = match self.rubberband.addPoint3D(point3d) self.temp_rubberband.reset() - self.temp_rubberband.addPoint(match.point()) + self.temp_rubberband.addPoint(QgsPointXY(point3d.x(), point3d.y())) if self.snapping_marker is not None: sip.delete(self.snapping_marker) @@ -316,7 +316,7 @@ def snap(self, event): point = f.geometry().geometry().vertexAt(vertex_id) else: self.iface.messageBar().pushMessage('snapping Z on line or polygon layers' - 'is broken in this QGIS version.' + ' is broken in this QGIS version.' ' Use at least 2.18.21.', QgsMessageBar.CRITICAL, 7) return QgsPoint(match.point()), match