Merge pull request #1263 from ostephens/fix_range_facet

Ensure _max is never less than _min for numeric range facet
This commit is contained in:
Antonin Delpeuch 2017-10-09 20:05:04 +02:00 committed by GitHub
commit f7b81789dc

View File

@ -87,7 +87,7 @@ abstract public class NumericBinIndex {
if (_min >= _max) {
_step = 1;
_min = Math.min(_min, _max);
_max = _step;
_max = _min+_step;
_bins = new int[1];
return;