Skip to content

Commit

Permalink
ObjText: add ensureGeometryUpdate() in findCharacterPos()
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathSpirit committed Sep 27, 2024
1 parent 0afe2cb commit c194733
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/object/C_objText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ float ObjText::getOutlineThickness() const

fge::Vector2f ObjText::findCharacterPos(std::size_t index) const
{
this->ensureGeometryUpdate();

if (this->g_characters.empty())
{
return {};
Expand Down

0 comments on commit c194733

Please sign in to comment.