Merge pull request #1334 from moadib/gles20

Fixed statement which works but incorrect from point of C++ standard
This commit is contained in:
minggo 2012-09-19 20:10:15 -07:00
commit d662082ef1
1 changed files with 4 additions and 1 deletions

View File

@ -152,7 +152,10 @@ public:
pwszBuffer = NULL;
}
}
fontPath.size()>0?(m_curFontPath = fontPath):(m_curFontPath.clear());
if (fontPath.size() > 0)
m_curFontPath = fontPath;
else
m_curFontPath.clear();
// register temp font
if (m_curFontPath.size() > 0)
{