diff --git a/.gitignore b/.gitignore index 8f718aea18f8228889f4966d3e05d98422a63c57..5a12c9f6778a0f6d3d7e41243a29ccdc903a43d4 100644 --- a/.gitignore +++ b/.gitignore @@ -166,7 +166,7 @@ Desktop.ini .tags .tags_sorted_by_file -Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/inc/MantidVatesSimpleGuiViewWidgets/LibHelper.h +Vates/VatesSimpleGui/ViewWidgets/inc/MantidVatesSimpleGuiViewWidgets/LibHelper.h # Make sure Third_Party doesn't get checked into the main repository diff --git a/MantidQt/CustomInterfaces/src/Indirect/ISISEnergyTransfer.cpp b/MantidQt/CustomInterfaces/src/Indirect/ISISEnergyTransfer.cpp index ae32ddc36c2e30d07b9ff6dd2d5de8769a48a24a..9839ec88af9df01154c45c2d067bd7529c35b23d 100644 --- a/MantidQt/CustomInterfaces/src/Indirect/ISISEnergyTransfer.cpp +++ b/MantidQt/CustomInterfaces/src/Indirect/ISISEnergyTransfer.cpp @@ -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);