Skip to content

Commit

Permalink
fix temp rubber band
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 13, 2018
1 parent 1a8c20a commit da97a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/qgepmaptooladdfeature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit da97a86

Please sign in to comment.