Fix deserializing SLIDER[1,2]

Resolves #1419
This commit is contained in:
Raphael Coeffic
2022-01-16 11:17:50 +01:00
parent b8553928ed
commit 064a71f7f2
@@ -108,7 +108,7 @@ RawSource YamlRawSourceDecode(const std::string& src_str)
if (idx < CPN_MAX_INPUTS) { if (idx < CPN_MAX_INPUTS) {
rhs = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, idx); rhs = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, idx);
} }
} else if (val_len >= 2 } else if (val_len == 2
&& val[0] == 'S' && val[0] == 'S'
&& val[1] >= 'A' && val[1] >= 'A'
&& val[1] <= 'Z') { && val[1] <= 'Z') {