From bc7c49431649678f5daed6fc9ede51ed3361e251 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 19 Mar 2022 00:47:36 +0100 Subject: [PATCH] patterns: Fixed highlighting of static array entries --- .../hex/pattern_language/patterns/pattern_array_static.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/include/hex/pattern_language/patterns/pattern_array_static.hpp b/lib/libimhex/include/hex/pattern_language/patterns/pattern_array_static.hpp index 084c69fe2..48e973a51 100644 --- a/lib/libimhex/include/hex/pattern_language/patterns/pattern_array_static.hpp +++ b/lib/libimhex/include/hex/pattern_language/patterns/pattern_array_static.hpp @@ -137,7 +137,7 @@ namespace hex::pl { [[nodiscard]] const Pattern *getPattern(u64 offset) const override { if (this->isHidden()) return nullptr; - this->m_highlightTemplate->setColor(this->getColor()); + this->m_highlightTemplate->setBaseColor(this->getColor()); this->m_highlightTemplate->setVariableName(this->getVariableName()); this->m_highlightTemplate->setDisplayName(this->getDisplayName());