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

Added check for background start/end in plot Time validation

Refs #13769
parent 2fd731d0
No related branches found
No related tags found
No related merge requests found
......@@ -447,6 +447,15 @@ void ISISEnergyTransfer::plotRaw() {
return;
}
if (m_uiForm.ckBackgroundRemoval->isChecked() == true) {
int startBack = m_uiForm.spBackgroundStart->value();
int endBack = m_uiForm.spBackgroundEnd->value();
if (startBack > endBack) {
emit showMessageBox("Background Start must be less than Background End");
return;
}
}
QString rawFile = m_uiForm.dsRunFiles->getFirstFilename();
auto pos = rawFile.lastIndexOf(".");
auto extension = rawFile.right(rawFile.length() - pos);
......
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