Skip to content

Commit

Permalink
Fix plot title check
Browse files Browse the repository at this point in the history
We only need to confirm that we are in the correct detector in the raw image
mode.

Signed-off-by: Brianna Major <[email protected]>
  • Loading branch information
bnmajor committed Sep 20, 2023
1 parent 9cc66f6 commit d2446e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hexrd/ui/mask_regions_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def check_pick(self, event):
(event.xdata, event.ydata))
if (not pick_found and
it.template.contains_point(transformed_click) and
event.inaxes.get_title() == it.detector):
(self.image_mode == ViewType.polar or
event.inaxes.get_title() == it.detector)):
if self.interactive_template:
self.interactive_template.disconnect()
self.interactive_template = it
Expand Down

0 comments on commit d2446e0

Please sign in to comment.