Skip to content

Commit 40abd5f

Browse files
authored
Merge pull request #631 from psavery/fix-laue-back-button
Only remove last Laue spot when back pressed
2 parents 4c1eed7 + f8a64f5 commit 40abd5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hexrd/ui/calibration/calibration_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,4 +420,5 @@ def last_point_removed(self):
420420
self.current_data_list.pop(-1)
421421
elif self.active_overlay_type == OverlayType.laue:
422422
self.decrement_overlay_data_index()
423-
self.current_data_list.clear()
423+
if self.current_data_list:
424+
self.current_data_list.pop(-1)

0 commit comments

Comments
 (0)