summaryrefslogtreecommitdiff
path: root/indra/llui/llconsole.cpp
diff options
context:
space:
mode:
authorSteve Bennetts <steve@lindenlab.com>2009-10-15 14:14:46 -0700
committerSteve Bennetts <steve@lindenlab.com>2009-10-15 14:14:46 -0700
commit590d3b9e3a2abdd37270ca64689a64c4e879fbe6 (patch)
tree96e7e8d1ac31027c04a964a7c16c16ef3a0df6ba /indra/llui/llconsole.cpp
parent47e02d13f7e6307d9eb507177b88bbf0ab496894 (diff)
EXT-1279 Crash if font file not found.
Added getFontDefault() to llfontgl.h --HG-- branch : branch-test
Diffstat (limited to 'indra/llui/llconsole.cpp')
-rw-r--r--indra/llui/llconsole.cpp5
1 files changed, 5 insertions, 0 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++)
{