Commit fcf9a224 authored by Marius Muja's avatar Marius Muja

Bug fix

parent 46fa7b49
...@@ -404,7 +404,7 @@ private: ...@@ -404,7 +404,7 @@ private:
cutfeat = 0; cutfeat = 0;
cutval = (bbox[0].high+bbox[0].low)/2; cutval = (bbox[0].high+bbox[0].low)/2;
for (size_t i=1; i<dim_; ++i) { for (size_t i=1; i<dim_; ++i) {
ElementType span = bbox[i].low-bbox[i].low; ElementType span = bbox[i].high-bbox[i].low;
if (span>max_span) { if (span>max_span) {
max_span = span; max_span = span;
cutfeat = i; cutfeat = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment