Commit b90e16c53e07f7d1c13734163ffa6a8334a610f0

Authored by tatiana
1 parent 4e80f1ec

EHN: Measurement random colour

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/measures.py
@@ -22,7 +22,7 @@ class Measurement(): @@ -22,7 +22,7 @@ class Measurement():
22 general_index = -1 22 general_index = -1
23 def __init__(self): 23 def __init__(self):
24 Measurement.general_index += 1 24 Measurement.general_index += 1
25 - self.index = Surface.general_index 25 + self.index = Measurement.general_index
26 self.name = const.MEASURE_NAME_PATTERN %(self.index+1) 26 self.name = const.MEASURE_NAME_PATTERN %(self.index+1)
27 self.colour = const.DEFAULT_MEASURE_COLOUR 27 self.colour = const.DEFAULT_MEASURE_COLOUR
28 self.value = None 28 self.value = None