From 1b66c84303ef39480221cd662d8d61b3ce2e9b7a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 18 Oct 2021 09:57:26 +0200 Subject: [PATCH] patterns: Fixed [[name]] attribute setting variable name instead of display name --- plugins/libimhex/include/hex/pattern_language/ast_node.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libimhex/include/hex/pattern_language/ast_node.hpp b/plugins/libimhex/include/hex/pattern_language/ast_node.hpp index d372031f9..e65cf54c6 100644 --- a/plugins/libimhex/include/hex/pattern_language/ast_node.hpp +++ b/plugins/libimhex/include/hex/pattern_language/ast_node.hpp @@ -596,7 +596,7 @@ namespace hex::pl { u32 color = strtoul(value->c_str(), nullptr, 16); pattern->setColor(hex::changeEndianess(color, std::endian::big) >> 8); } else if (name == "name" && requiresValue()) { - pattern->setVariableName(*value); + pattern->setDisplayName(*value); } else if (name == "comment" && requiresValue()) { pattern->setComment(*value); } else if (name == "hidden" && noValue()) {