We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d1697 commit c7e7e70Copy full SHA for c7e7e70
src/serial/datatool/xsdparser.cpp
@@ -1288,12 +1288,14 @@ void XSDParser::ParseEnumeration(DTDAttribute& att)
1288
att.SetType(DTDAttribute::eEnum);
1289
}
1290
int id = 0;
1291
+ bool hasint = false;
1292
if (GetAttribute("intvalue")) {
1293
id = NStr::StringToInt(m_Value);
1294
att.SetType(DTDAttribute::eIntEnum);
1295
+ hasint = true;
1296
1297
if (GetAttribute("value")) {
- if (att.GetType() == DTDAttribute::eIntEnum) {
1298
+ if (!hasint && att.GetType() == DTDAttribute::eIntEnum) {
1299
1300
1301
string v(m_ValuePrefix);
0 commit comments