diff --git a/mxcubecore/HardwareObjects/SampleView.py b/mxcubecore/HardwareObjects/SampleView.py index 85d27c5cbb..2ecc1769e7 100644 --- a/mxcubecore/HardwareObjects/SampleView.py +++ b/mxcubecore/HardwareObjects/SampleView.py @@ -485,7 +485,7 @@ def mpos(self): def set_id(self, id_num): Shape.set_id(self, id_num) - self.cp_list[0].index = self.id + self.cp_list[0].index = self.name def as_dict(self): d = Shape.as_dict(self) @@ -516,7 +516,6 @@ def __init__(self, mpos_list, screen_coord): def set_id(self, id_num): Shape.set_id(self, id_num) - self.cp_list[0].index = self.id def get_centred_positions(self): return [self.start_cpos, self.end_cpos] @@ -586,7 +585,6 @@ def get_num_lines(self): def set_id(self, id_num): Shape.set_id(self, id_num) - self.cp_list[0].index = self.id def set_result(self, result_data): self.result = result_data