summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorSteve Bennetts <steve@lindenlab.com>2009-10-15 14:21:03 -0700
committerSteve Bennetts <steve@lindenlab.com>2009-10-15 14:21:03 -0700
commitdce043b3177eb9a7d017af2a7e9f889a18668e77 (patch)
tree1029565038ae3e23ee4e96e8432cb28ff80ba83c /indra/llui
parente9f7205ba9f4dfb3422759218609b62d61972722 (diff)
parent590d3b9e3a2abdd37270ca64689a64c4e879fbe6 (diff)
Merge from branch-test (EXT-1279)
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llconsole.cpp5
-rw-r--r--indra/llui/llui.cpp7
2 files changed, 11 insertions, 1 deletions
diff --git a/indra/llui/llconsole.cpp b/indra/llui/llconsole.cpp
index 285ce82d2d..e0053b4cc7 100644
--- a/indra/llui/llconsole.cpp
+++ b/indra/llui/llconsole.cpp
@@ -120,6 +120,11 @@ void LLConsole::setFontSize(S32 size_index)
{
mFont = LLFontGL::getFontSansSerifHuge();
}
+ // Make sure the font exists
+ if (mFont == NULL)
+ {
+ mFont = LLFontGL::getFontDefault();
+ }
for(paragraph_t::iterator paragraph_it = mParagraphs.begin(); paragraph_it != mParagraphs.end(); paragraph_it++)
{
diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp
index c89e5944fa..eb1b60244d 100644
--- a/indra/llui/llui.cpp
+++ b/indra/llui/llui.cpp
@@ -1954,7 +1954,12 @@ namespace LLInitParam
return fontp;
}
}
-
+
+ if (mData.mValue == NULL)
+ {
+ mData.mValue = LLFontGL::getFontDefault();
+ }
+
// default to current value
return mData.mValue;
}