# HG changeset patch # User Tom Gottfried # Date 1380645990 -7200 # Node ID c5214e04b9b87ca515488a50d0087ff7d8e1879c # Parent 70ab9e8cdefb70af31e6d1c0c3cc616ed98f48ab WST-parser: making ranges tightly fit was broken since a b1) { + if (lastRange != null && lastA > lastB) { to = new BigDecimal(from.doubleValue() - INTERVAL_GAP); } else { @@ -447,12 +442,13 @@ if (lastRange != null) { double a2 = range.getA().doubleValue(); + double b2 = range.getB().doubleValue(); - if (a1 < b1) { + if (lastA < lastB) { lastRange.setB(new BigDecimal(a2 - INTERVAL_GAP)); } - else { // a1 >= b1 - lastRange.setB(new BigDecimal(a2 + INTERVAL_GAP)); + else { // lastA >= lastB + lastRange.setA(new BigDecimal(b2 + INTERVAL_GAP)); } } @@ -462,6 +458,8 @@ column.addColumnQRange(wstQRange); } + lastA = from.doubleValue(); + lastB = to.doubleValue(); lastRange = range; }