use numeric value as fallback for ValueListDataField with unknown value association

This commit is contained in:
john30
2015-12-26 11:34:47 +01:00
parent d5dac022d7
commit 125328f7c1
+3 -1
View File
@@ -1232,7 +1232,9 @@ result_t ValueListDataField::readSymbols(SymbolString& input, const unsigned cha
map<unsigned int, string>::iterator it = m_values.find(value);
if (it == m_values.end() && value != m_dataType.replacement) {
return RESULT_ERR_NOTFOUND; // value assignment not found
// fall back to raw value in input
output << setw(0) << dec << static_cast<int>(value);
return RESULT_OK;
}
if (it == m_values.end()) {
if (outputFormat & OF_JSON)