Skip to content

Commit

Permalink
Re #5980. Added the ranges to the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Oct 22, 2012
1 parent 9451156 commit 2fc588b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ namespace MantidQt
sortPair(rangeB);

if( !(rangeA.second < rangeB.first || rangeB.second < rangeA.first) )
m_errorMessages.append("The ranges must not overlap.");
{
QString message = QString("The ranges must not overlap: [%1,%2], [%3,%4].")
.arg(rangeA.first).arg(rangeA.second).arg(rangeB.first).arg(rangeB.second);
m_errorMessages.append( message );
}
}

/**
Expand Down

0 comments on commit 2fc588b

Please sign in to comment.