From 45fc31ba7b74a2c87690145fa163dab3f197b3a6 Mon Sep 17 00:00:00 2001 From: Profeta Date: Wed, 1 Jul 2026 11:28:06 -0300 Subject: fix: skip empty comment strings in apply_localized_comments Address review feedback on PR #5956: do not call setComment() when the localized string is empty, preserving the English fallback. --- indra/newview/llappviewer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 67e8214bf2..b0c13d9818 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3144,7 +3144,11 @@ static void apply_localized_comments(LLControlGroup& group, const LLSD& comments LLControlVariablePtr control = group.getControl(it->first); if (control.notNull()) { - control->setComment(it->second.asString()); + const std::string comment = it->second.asString(); + if (!comment.empty()) + { + control->setComment(comment); + } } } } -- cgit v1.3