Skip to content

Commit

Permalink
2062 roi tracking - Quick fix RITS_ROI bug (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Feb 26, 2024
2 parents e23da78 + dd8d935 commit c038877
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mantidimaging/gui/windows/spectrum_viewer/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ def handle_roi_moved(self, force_new_spectrums: bool = False) -> None:
self.view.set_spectrum(name, self.model.get_spectrum(name, self.spectrum_mode))

def handle_roi_clicked(self, roi) -> None:
self.view.current_roi = roi.name
self.view.last_clicked_roi = roi.name
self.view.set_roi_properties()
if not roi.name == ROI_RITS:
self.view.current_roi = roi.name
self.view.last_clicked_roi = roi.name
self.view.set_roi_properties()

def redraw_spectrum(self, name: str) -> None:
"""
Expand Down

0 comments on commit c038877

Please sign in to comment.