# HG changeset patch # User Andre Heinecke # Date 1418741913 -3600 # Node ID 32c94ca227bc05f32b853489c34c5adaea0527cb # Parent 5160d5f9c65d3eb44cde394784f7dc259a9edb49 (issue1782) Invert artifact range if necessary in officiallinefinder diff -r 5160d5f9c65d -r 32c94ca227bc artifacts/src/main/java/org/dive4elements/river/artifacts/model/OfficialLineFinder.java --- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/OfficialLineFinder.java Tue Dec 16 15:40:00 2014 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/OfficialLineFinder.java Tue Dec 16 15:58:33 2014 +0100 @@ -247,7 +247,12 @@ } } try { - return new Range(Double.parseDouble(from), Double.parseDouble(to)); + double f = Double.parseDouble(from); + double t = Double.parseDouble(to); + if (f > t) { + return new Range(t, f); + } + return new Range(f, t); } catch (NumberFormatException nfe) { return MAX_RANGE;