summaryrefslogtreecommitdiff
path: root/indra/newview/llscripteditor.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-01-12 06:42:56 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2026-01-15 06:04:35 +0200
commitf1f89b2a21468a9a6f90bfd77a5dfcbcb0b3c0c6 (patch)
tree3135f0a2411499af0cd884333eb0d6538c83c3a4 /indra/newview/llscripteditor.cpp
parentbb56e9dd9ff4b93c910bd1d72fb6cdba31be3ea9 (diff)
#5278 Use correct font for unhighlighted segments
Diffstat (limited to 'indra/newview/llscripteditor.cpp')
-rw-r--r--indra/newview/llscripteditor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llscripteditor.cpp b/indra/newview/llscripteditor.cpp
index 93244107ca..68c4077b89 100644
--- a/indra/newview/llscripteditor.cpp
+++ b/indra/newview/llscripteditor.cpp
@@ -254,7 +254,9 @@ LLScriptEditor::~LLScriptEditor()
bool LLScriptEditor::postBuild()
{
gSavedSettings.getControl("LSLFontSizeName")->getCommitSignal()->connect(boost::bind(&LLScriptEditor::onFontSizeChange, this));
- return LLTextEditor::postBuild();
+ bool result = LLTextEditor::postBuild();
+ setFont(getScriptFont());
+ return result;
}
void LLScriptEditor::draw()
@@ -621,6 +623,7 @@ void LLScriptEditor::onFontSizeChange()
{
if (!mUseDefaultFontSize)
{
+ setFont(getScriptFont());
needsReflow();
}
}