From 1bb206a380c1d39fc046dfc1c7ff8a23db3e7066 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Wed, 26 Sep 2012 23:08:42 +0200 Subject: [PATCH] Fixed the local bounds of sf::Text not updated when assigned an empty string --- src/SFML/Graphics/Text.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index 655e53c7..ffc55c56 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/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)