diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 48cf2bb00..fdf009d8a 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -722,7 +722,7 @@ namespace hex::plugin::builtin { } if (color.has_value()) - color = *color | (this->m_selectionColor & 0xFF000000); + color = (*color & 0x00FFFFFF) | (this->m_selectionColor & 0xFF000000); return color; }();