Skip to content
Snippets Groups Projects
Commit 9ea0da21 authored by Elliot Oram's avatar Elliot Oram
Browse files

Added check to ensure background start < background end

Refs #13653
parent 6d2d26d1
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,15 @@ bool ISISEnergyTransfer::validate() {
uiv.addErrorMessage("Spectra Min must be less than Spectra Max");
}
// Background Removal (TOF)
if(m_uiForm.ckBackgroundRemoval->isChecked()){
const int start = m_uiForm.spBackgroundStart->value();
const int end = m_uiForm.spBackgroundEnd->value();
if(start > end){
uiv.addErrorMessage("Background Start must be less than Background End");
}
}
QString error = uiv.generateErrorMessage();
showMessageBox(error);
......
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