From 393772d1f80126e018902f26d164479f368bf2c5 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 7 Mar 2015 23:17:11 -0500 Subject: [PATCH] fixed a small remaining surface issue; z values weren't clamped to 0 --- src/surface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surface.cc b/src/surface.cc index bcf33410..5c2617c3 100644 --- a/src/surface.cc +++ b/src/surface.cc @@ -220,7 +220,7 @@ Geometry *SurfaceNode::createGeometry() const int lines = 0; int columns = 0; - double min_val = std::numeric_limits::max(); + double min_val = 0; for (img_data_t::iterator it = data.begin();it != data.end();it++) { lines = std::max(lines, (*it).first.first + 1); columns = std::max(columns, (*it).first.second + 1);