From 68b3409314cb3fe96300a72a5f2ac04e95c7b7da Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Wed, 3 Feb 2010 04:02:34 +0100 Subject: [PATCH 1/1] fixed Box::Extend(Vec3f&) --- Box.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Box.cxx b/Box.cxx index febe7c7..6974d42 100644 --- a/Box.cxx +++ b/Box.cxx @@ -42,7 +42,8 @@ Box::Extend(const Vec3f& a) for(size_t i = 0; i < 3; i++) { if(a[i] > m_max[i]) { m_max[i] = a[i]; - } else if(a[i] < m_min[i]) { + } + if(a[i] < m_min[i]) { m_min[i] = a[i]; } // else: do nothing, coordinate is inside the box } -- 2.20.1