From 711e0d771edb48e77fa23d965f026add268a31ee Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 23 Jul 2018 15:03:00 +0200 Subject: [PATCH] slsDetectorSoftware: users setSettings(-1) gives undefined settings. fixed --- slsDetectorSoftware/slsDetector/slsDetector.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index bbc01ac8b..1fbc290e1 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -2640,6 +2640,9 @@ slsDetectorDefs::detectorSettings slsDetector::setSettings( detectorSettings ise std::cout<< "slsDetector setSettings " << isettings << std::endl; #endif + if (isettings == -1) + return getSettings(imod); + detectorType detType = thisDetector->myDetectorType; switch (detType) {