Fixed the local bounds of sf::Text not updated when assigned an empty string
This commit is contained in:
parent
57f81d4051
commit
1bb206a380
@ -227,6 +227,7 @@ void Text::updateGeometry()
|
||||
{
|
||||
// Clear the previous geometry
|
||||
m_vertices.clear();
|
||||
m_bounds = sf::FloatRect();
|
||||
|
||||
// No font: nothing to draw
|
||||
if (!m_font)
|
||||
|
Loading…
Reference in New Issue
Block a user