Skip to content

Commit

Permalink
Merge pull request #47 from olivierdalang/fix_546
Browse files Browse the repository at this point in the history
fix #546 : Freeze when digitizing reach with wizard
  • Loading branch information
m-kuhn authored Feb 24, 2020
2 parents b035263 + 257a5a5 commit effdb87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qgepplugin/tools/qgepmaptooladdfeature.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def __init__(self, map_canvas: QgsMapCanvas, geometry_type):
def addPoint3D(self, point):
assert type(point) == QgsPoint
QgsRubberBand.addPoint(self, QgsPointXY(point.x(), point.y()))
self.points.append(QgsPoint(point))
# Workaround crash with QGIS 3.10.2 (https://github.com/qgis/QGIS/issues/34557)
new_point = QgsPoint(point.x(), point.y(), point.z(), point.m(), point.wkbType())
self.points.append(new_point)

def reset3D(self):
QgsRubberBand.reset(self)
Expand Down

0 comments on commit effdb87

Please sign in to comment.