Fix uninitialized m_isNew causing asterisk on all DRC Rule Editor tree items

The default constructor of RULE_EDITOR_DATA_BASE left m_isNew
uninitialized. On Linux, the garbage memory value was assigned
causing IsNew() to return true for every rule and appending
astersix to all tree items.

Fix by adding a default member initializer: m_isNew = false.
This commit is contained in:
Damjan Prerad
2026-02-26 11:34:41 +01:00
parent 8818f79dcf
commit e2a9f06420
+1 -1
View File
@@ -141,7 +141,7 @@ private:
std::optional<int> m_parentId; // Optional parent ID of the rule.
wxString m_ruleName;
wxString m_comment;
bool m_isNew; /**< Flag indicating if the user is creating a new rule (true)
bool m_isNew = false; /**< Flag indicating if the user is creating a new rule (true)
or editing an existing rule (false). */
};