patterns: Fixed [[name]] attribute setting variable name instead of display name

This commit is contained in:
WerWolv 2021-10-18 09:57:26 +02:00
parent 1c321b7de2
commit 1b66c84303
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ namespace hex::pl {
u32 color = strtoul(value->c_str(), nullptr, 16); u32 color = strtoul(value->c_str(), nullptr, 16);
pattern->setColor(hex::changeEndianess(color, std::endian::big) >> 8); pattern->setColor(hex::changeEndianess(color, std::endian::big) >> 8);
} else if (name == "name" && requiresValue()) { } else if (name == "name" && requiresValue()) {
pattern->setVariableName(*value); pattern->setDisplayName(*value);
} else if (name == "comment" && requiresValue()) { } else if (name == "comment" && requiresValue()) {
pattern->setComment(*value); pattern->setComment(*value);
} else if (name == "hidden" && noValue()) { } else if (name == "hidden" && noValue()) {