From d2446e00f8188d21a49e8f3e8944aad68110fbc6 Mon Sep 17 00:00:00 2001 From: Brianna Major Date: Wed, 20 Sep 2023 13:41:47 -0400 Subject: [PATCH] Fix plot title check We only need to confirm that we are in the correct detector in the raw image mode. Signed-off-by: Brianna Major --- hexrd/ui/mask_regions_dialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hexrd/ui/mask_regions_dialog.py b/hexrd/ui/mask_regions_dialog.py index 897195776..e3f14da7a 100644 --- a/hexrd/ui/mask_regions_dialog.py +++ b/hexrd/ui/mask_regions_dialog.py @@ -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