Skip to content

Commit

Permalink
Fix validation for cross section source
Browse files Browse the repository at this point in the history
Refs #11253
  • Loading branch information
DanNixon committed Mar 16, 2015
1 parent da90985 commit a8b349f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Indirect/CalcCorr.cpp
Expand Up @@ -365,13 +365,13 @@ namespace IDA
switch(m_uiForm.cbSampleInputType->currentIndex())
{
case 0:
//using direct input
uiv.checkFieldIsValid("Sample Scattering Cross-Section", m_uiForm.lesamsigs, m_uiForm.valSamsigs);
uiv.checkFieldIsValid("Sample Absorption Cross-Section", m_uiForm.lesamsiga, m_uiForm.valSamsiga);
//input using formula
uiv.checkFieldIsValid("Sample Formula", m_uiForm.leSampleFormula, m_uiForm.valSampleFormula);
break;
case 1:
//input using formula
uiv.checkFieldIsValid("Sample Formula", m_uiForm.leSampleFormula, m_uiForm.valSampleFormula);
//using direct input
uiv.checkFieldIsValid("Sample Scattering Cross-Section", m_uiForm.lesamsigs, m_uiForm.valSamsigs);
uiv.checkFieldIsValid("Sample Absorption Cross-Section", m_uiForm.lesamsiga, m_uiForm.valSamsiga);
break;
}

Expand All @@ -390,13 +390,13 @@ namespace IDA
switch(m_uiForm.cbCanInputType->currentIndex())
{
case 0:
// using direct input
uiv.checkFieldIsValid("Can Scattering Cross-Section", m_uiForm.lecansigs, m_uiForm.valCansigs);
uiv.checkFieldIsValid("Can Absorption Cross-Section", m_uiForm.lecansiga, m_uiForm.valCansiga);
//input using formula
uiv.checkFieldIsValid("Can Formula", m_uiForm.leCanFormula, m_uiForm.valCanFormula);
break;
case 1:
//input using formula
uiv.checkFieldIsValid("Can Formula", m_uiForm.leCanFormula, m_uiForm.valCanFormula);
// using direct input
uiv.checkFieldIsValid("Can Scattering Cross-Section", m_uiForm.lecansigs, m_uiForm.valCansigs);
uiv.checkFieldIsValid("Can Absorption Cross-Section", m_uiForm.lecansiga, m_uiForm.valCansiga);
break;
}
}
Expand Down

0 comments on commit a8b349f

Please sign in to comment.