Cleanup: quiet warning in GCC

This commit is contained in:
Campbell Barton
2025-08-01 14:02:26 +10:00
parent c04310d69f
commit 62dc34621a

View File

@@ -338,7 +338,10 @@ void BLF_disable(int fontid, FontFlags flag)
bool BLF_is_builtin(int fontid)
{
FontBLF *font = blf_get(fontid);
return font ? (font->flags & BLF_DEFAULT) : false;
if (font) {
return font->flags & BLF_DEFAULT;
}
return false;
}
void BLF_character_weight(int fontid, int weight)