Skip to content

Commit a473508

Browse files
committed
CSSTUDIO-1928-branch2 Remove check for ordering of low and high, since LinearTicks.compute() supports either order.
1 parent 1a3f4d3 commit a473508

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/rtplot/src/main/java/org/csstudio/javafx/rtplot/internal/LinearTicks.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,7 @@ public Pair<Double, Double> adjustRange(Double low, Double high)
7878
if (Math.abs(high - low) < 3*Math.ulp(low)) {
7979
high = low + 3*Math.ulp(low);
8080
}
81-
82-
if (high < low) {
83-
return new Pair<>(high, low);
84-
}
85-
else {
86-
return new Pair<>(low, high);
87-
}
81+
return new Pair<>(low, high);
8882
}
8983

9084
/** {@inheritDoc} */

0 commit comments

Comments
 (0)