Fix misleading error message for validating unsigned fields

This commit is contained in:
2017-02-07 20:08:53 -05:00
parent b6f16180c7
commit ed0c41c3ce

View File

@@ -36,7 +36,7 @@ bool cTextField::callHandler(event_fcn<EVT_DEFOCUS>::type onFocus, cDialog& me,
} catch(boost::bad_lexical_cast) {
static const std::map<const eFldType, const std::string> typeNames = {
{FLD_INT, "an integer"},
{FLD_UINT, "a positive integer"},
{FLD_UINT, "a non-negative integer"},
{FLD_REAL, "a number"},
};
showError("You need to enter " + typeNames.at(field_type) + "!","",parent);