From d716b3657c996e88ff19b360ea37515a822aa5f5 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 24 Aug 2012 16:20:27 +0200 Subject: [PATCH] Minor improvement in VertexArray::getBounds --- src/SFML/Graphics/VertexArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/VertexArray.cpp b/src/SFML/Graphics/VertexArray.cpp index 5a4ed957..96bd8f39 100644 --- a/src/SFML/Graphics/VertexArray.cpp +++ b/src/SFML/Graphics/VertexArray.cpp @@ -113,7 +113,7 @@ FloatRect VertexArray::getBounds() const float right = m_vertices[0].position.x; float bottom = m_vertices[0].position.y; - for (std::size_t i = 0; i < m_vertices.size(); ++i) + for (std::size_t i = 1; i < m_vertices.size(); ++i) { Vector2f position = m_vertices[i].position;