Font: 'exist?' allows any object (returns false if not string)

This commit is contained in:
Jonas Kulla 2014-08-09 17:18:42 +02:00
parent 6c9fbc1465
commit cc0ab35f10
3 changed files with 17 additions and 4 deletions

View file

@ -247,6 +247,9 @@ Color FontPrivate::defaultColorTmp(255, 255, 255, 255);
bool Font::doesExist(const char *name)
{
if (!name)
return false;
return shState->fontState().fontPresent(name);
}