diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-01-28 13:58:00 +0200 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-01-28 13:58:00 +0200 |
commit | 14caf5475b8963e6b6689e96a0a7a64e13bb1887 (patch) | |
tree | 8d08ab19e287fca6a07622560669573fb9750181 /indra/llrender/llfontbitmapcache.cpp | |
parent | 33a417dd2d93573f7aafc194eefdad5339bccf1d (diff) | |
parent | 52bd13e1f5cd661ff359e36be8c0496d06c19d1c (diff) |
Merge from default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/llrender/llfontbitmapcache.cpp')
-rw-r--r-- | indra/llrender/llfontbitmapcache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llfontbitmapcache.cpp b/indra/llrender/llfontbitmapcache.cpp index f01878642a..fa231c9e6a 100644 --- a/indra/llrender/llfontbitmapcache.cpp +++ b/indra/llrender/llfontbitmapcache.cpp @@ -64,7 +64,7 @@ void LLFontBitmapCache::init(S32 num_components, LLImageRaw *LLFontBitmapCache::getImageRaw(U32 bitmap_num) const { - if ((bitmap_num < 0) || (bitmap_num >= mImageRawVec.size())) + if (bitmap_num >= mImageRawVec.size()) return NULL; return mImageRawVec[bitmap_num]; @@ -72,7 +72,7 @@ LLImageRaw *LLFontBitmapCache::getImageRaw(U32 bitmap_num) const LLImageGL *LLFontBitmapCache::getImageGL(U32 bitmap_num) const { - if ((bitmap_num < 0) || (bitmap_num >= mImageGLVec.size())) + if (bitmap_num >= mImageGLVec.size()) return NULL; return mImageGLVec[bitmap_num]; |