Commit
b90e16c53e07f7d1c13734163ffa6a8334a610f0
Authored by
tatiana
Exists in
master
and in
68 other branches
3d_inter_style, MIPs, beta3, beta4, brush_pix, canvas_reeng, canvas_text, casmoothing_cython, clean, command-line, cython_threshold, debian_cython, editor_improvements, encoding, ff_mask, ff_mask_improv, ffill_gui, ffill_segmentation, fill_holes_auto, fixes_pre_beta5, floodfill, get_pixel, import_mesh, interactor_style, inv3.0.1, invesalius-libift, mactoolbar, mactoolbar_bkp, manual_v3.1, mask_boolean_op, mask_boolean_op_bkp, mask_copy, mask_greatest_component, measure, measure_canvas, measure_improvements, measure_placement_test, measure_spacing, orientation, phoenix, region_growing_confidence, remote, remove_local_wxpython, rmatsuda-fix_ref_MTC, rmatsuda-fix_remove_marker_bug, rmatsuda-trigger_bug_fix, rotvol, segmentation_menu, select_part, smoothing_bin, smoothing_bin_pll, surface_area, threshold_history, user_guide_en, usp-navegador, vti, vtk6, watershed, watershed_improvements, watershed_improvements_bkp, watershed_merge, workdir, wwwlgui, wx2.9_mac, wxgtk3, wxgtk3_b5, wxgtk3_bkp, xmartlabs-command-line
EHN: Measurement random colour
| @@ -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 |