Fixed the local bounds of sf::Text not updated when assigned an empty string

This commit is contained in:
Laurent Gomila 2012-09-26 23:08:42 +02:00
parent 57f81d4051
commit 1bb206a380

View File

@ -227,6 +227,7 @@ void Text::updateGeometry()
{ {
// Clear the previous geometry // Clear the previous geometry
m_vertices.clear(); m_vertices.clear();
m_bounds = sf::FloatRect();
// No font: nothing to draw // No font: nothing to draw
if (!m_font) if (!m_font)