summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersettingsdebug.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-01-05 01:34:03 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-01-05 01:34:03 +0200
commit3fd86c2f23e288ec6754be0bf39bc452f6c0f3e1 (patch)
tree185f30940d167cdc26e69696b04a4079b5974c55 /indra/newview/llfloatersettingsdebug.cpp
parent6f522084ed859507f13a6b04fe90eceb441f888e (diff)
SL-18871 Debug setting's description is not scrollable
Diffstat (limited to 'indra/newview/llfloatersettingsdebug.cpp')
-rw-r--r--indra/newview/llfloatersettingsdebug.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llfloatersettingsdebug.cpp b/indra/newview/llfloatersettingsdebug.cpp
index 25cf8b2bf7..3c7f341613 100644
--- a/indra/newview/llfloatersettingsdebug.cpp
+++ b/indra/newview/llfloatersettingsdebug.cpp
@@ -208,7 +208,16 @@ void LLFloaterSettingsDebug::updateControl(LLControlVariable* controlp)
getChild<LLTextBox>("setting_name_txt")->setToolTip(controlp->getName());
mComment->setVisible(true);
- mComment->setText(controlp->getComment());
+ std::string old_text = mComment->getText();
+ std::string new_text = controlp->getComment();
+ // Don't setText if not nessesary, it will reset scroll
+ // This is a debug UI that reads from xml, there might
+ // be use cases where comment changes, but not the name
+ if (old_text != new_text)
+ {
+ mComment->setText(controlp->getComment());
+ }
+
spinner1->setMaxValue(F32_MAX);
spinner2->setMaxValue(F32_MAX);
spinner3->setMaxValue(F32_MAX);