From 17f8387dfbc159694504460306e45b343af8c253 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Sat, 11 Nov 2023 11:31:03 +0100
Subject: [PATCH] MaskResultsPresenter: createMaskPresentation: now using axis
 coords not bins (repairs worst of #823)

---
 GUI/Model/Data/MaskResultsPresenter.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/GUI/Model/Data/MaskResultsPresenter.cpp b/GUI/Model/Data/MaskResultsPresenter.cpp
index 180a9442209..277d113276c 100644
--- a/GUI/Model/Data/MaskResultsPresenter.cpp
+++ b/GUI/Model/Data/MaskResultsPresenter.cpp
@@ -38,13 +38,13 @@ Datafield* createMaskPresentation(Data2DItem* data2DItem)
                 roi = roiItem->createShape();
             else {
                 std::unique_ptr<IShape2D> shape((*maskIter)->createShape());
-                detectorMask.maskToStack(*shape, (*maskIter)->maskValue(), true);
+                detectorMask.maskToStack(*shape, (*maskIter)->maskValue(), false);
             }
         }
 
     // ROI mask has to be the last one, it can not be "unmasked" by other shapes
     if (roi)
-        detectorMask.maskToStack(*roi, true, true);
+        detectorMask.maskToStack(*roi, true, false);
 
     if (!detectorMask.hasMasks())
         return nullptr;
-- 
GitLab