fix(color): UI issues adding and removing labels (#7715)

This commit is contained in:
philmoz
2026-08-27 20:33:19 +10:00
committed by GitHub
parent 8347285abe
commit 4f6e0223c9
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -358,8 +358,8 @@ int ModelMap::addLabel(std::string lbl)
if (lbl == STR_UNLABELEDMODEL) return -1;
// Limit maximum label length, TODO... Truncate UTF8 Properly
lbl = lbl.substr(0, LABEL_LENGTH);
removeYAMLChars(lbl);
lbl = lbl.substr(0, LABEL_LENGTH);
if (lbl.size() == 0) return -1;
// Add a new label if it doesn't already exist in the list