Skip to content

Commit

Permalink
Fix rebinning validation, added error message
Browse files Browse the repository at this point in the history
Refs #10215
  • Loading branch information
DanNixon committed Oct 20, 2014
1 parent bb449d2 commit 5de12ac
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -97,7 +97,10 @@ void IndirectDiffractionReduction::plotResults(bool error)
{
// Nothing can be plotted
if(error)
{
showInformationBox("Error running diffraction reduction.\nSee Results Log for details.");
return;
}

QString instName = m_uiForm.cbInst->currentText();
QString mode = m_uiForm.cbReflection->currentText();
Expand Down Expand Up @@ -473,7 +476,7 @@ bool IndirectDiffractionReduction::validateRebin()
CHECK_VALID(rebStepTxt,m_uiForm.valRebinWidth);
CHECK_VALID(rebEndTxt,m_uiForm.valRebinEnd);

if(rebinValid && rebStartTxt.toDouble() > rebEndTxt.toDouble())
if(rebinValid && rebStartTxt.toDouble() >= rebEndTxt.toDouble())
{
rebinValid = false;
m_uiForm.valRebinStart->setText("*");
Expand Down

0 comments on commit 5de12ac

Please sign in to comment.