Oops, minor bug in range facet introduced in last check-in.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@504 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-04-19 23:45:18 +00:00
parent d1b0de95de
commit 2226d77c27

View File

@ -135,9 +135,11 @@ public class RangeFacet implements Facet {
_errorMessage = e.getMessage();
}
_from = o.getDouble(FROM);
_to = o.getDouble(TO);
_selected = true;
if (o.has(FROM) || o.has(TO)) {
_from = o.has(FROM) ? o.getDouble(FROM) : _min;
_to = o.has(TO) ? o.getDouble(TO) : _max;
_selected = true;
}
_selectNumeric = JSONUtilities.getBoolean(o, "selectNumeric", true);
_selectNonNumeric = JSONUtilities.getBoolean(o, "selectNonNumeric", true);