do not call BuildLookupTable if for whatever reason a font has no glyphs

This commit is contained in:
Soreepeong 2022-09-05 10:20:10 +09:00
parent f86885ec39
commit b666be53f9
3 changed files with 12 additions and 4 deletions

View file

@ -220,7 +220,7 @@ namespace Dalamud.Interface
}
}
if (rebuildLookupTable)
if (rebuildLookupTable && target.Value!.Glyphs.Size > 0)
target.Value!.BuildLookupTable();
}