Skip to content
Snippets Groups Projects
Commit 5d09e6b5 authored by Gemma Guest's avatar Gemma Guest
Browse files

Fix a typo with logic check, and valid results not shown

Re #26063
parent 62e08eda
No related branches found
No related tags found
No related merge requests found
......@@ -198,8 +198,10 @@ std::string ExperimentPresenter::transmissionStitchParamsFromView() {
// If set, the params should be a list containing an odd number of double
// values (as per the Params property of Rebin)
auto maybeParamsList = parseList(stitchParams, parseDouble);
if (maybeParamsList.is_initialized() && maybeParamsList->size() % 2 == 0)
if (maybeParamsList.is_initialized() && maybeParamsList->size() % 2 != 0) {
m_view->showTransmissionStitchParamsValid();
return stitchParams;
}
m_view->showTransmissionStitchParamsInvalid();
return std::string();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment