diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-10-15 14:14:46 -0700 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-10-15 14:14:46 -0700 |
commit | 590d3b9e3a2abdd37270ca64689a64c4e879fbe6 (patch) | |
tree | 96e7e8d1ac31027c04a964a7c16c16ef3a0df6ba /indra/llui/llui.cpp | |
parent | 47e02d13f7e6307d9eb507177b88bbf0ab496894 (diff) |
EXT-1279 Crash if font file not found.
Added getFontDefault() to llfontgl.h
--HG--
branch : branch-test
Diffstat (limited to 'indra/llui/llui.cpp')
-rw-r--r-- | indra/llui/llui.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |