Commit 01ada1e792a7b45764a1c7f91cc487ce7699e5d7

Authored by tfmoraes
1 parent 70587e76

FIX: Adding all the points in the measurements class

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/measures.py
... ... @@ -86,7 +86,6 @@ class MeasurementManager(object):
86 86 m = Measurement()
87 87 m.index = len(self.measures)
88 88 m.location = location
89   - m.points.append(position)
90 89 m.slice_number = slice_number
91 90 if type == const.LINEAR:
92 91 mr = LinearMeasure(m.colour)
... ... @@ -96,6 +95,7 @@ class MeasurementManager(object):
96 95  
97 96 x, y, z = position
98 97 actors = self.current[1].AddPoint(x, y, z)
  98 + self.current[0].points.append(position)
99 99 ps.Publisher().sendMessage(("Add actors", location),
100 100 (actors, self.current[0].slice_number))
101 101  
... ...