summaryrefslogtreecommitdiff
path: root/indra/llrender/llfontgl.cpp
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-05-13 18:17:16 +0300
committermaxim_productengine <mnikolenko@productengine.com>2019-05-13 18:17:16 +0300
commitf46969fec7ef4b2c7e4430d3d94a649cce337891 (patch)
tree8369d611c6d95eb3d82c5ee024ca861a5b36f982 /indra/llrender/llfontgl.cpp
parent7fa0e188929f636ab6b6ce846b3785b8c1abdf2a (diff)
SL-11139 FIXED LLFontGL::getStringFromStyle() never return "NORMAL"
Diffstat (limited to 'indra/llrender/llfontgl.cpp')
-rw-r--r--indra/llrender/llfontgl.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp
index b79615e730..86a4c35e6d 100644
--- a/indra/llrender/llfontgl.cpp
+++ b/indra/llrender/llfontgl.cpp
@@ -870,10 +870,6 @@ void LLFontGL::destroyAllGL()
U8 LLFontGL::getStyleFromString(const std::string &style)
{
S32 ret = 0;
- if (style.find("NORMAL") != style.npos)
- {
- ret |= NORMAL;
- }
if (style.find("BOLD") != style.npos)
{
ret |= BOLD;
@@ -893,7 +889,7 @@ U8 LLFontGL::getStyleFromString(const std::string &style)
std::string LLFontGL::getStringFromStyle(U8 style)
{
std::string style_string;
- if (style & NORMAL)
+ if (style == NORMAL)
{
style_string += "|NORMAL";
}