Permalink
Browse files

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

… string
  • Loading branch information...
1 parent 57f81d4 commit 1bb206a380c1d39fc046dfc1c7ff8a23db3e7066 @LaurentGomila LaurentGomila committed Sep 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/SFML/Graphics/Text.cpp
@@ -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)

0 comments on commit 1bb206a

Please sign in to comment.