Skip to content

Commit a44dbdb

Browse files
committed
CSSTUDIO-1928 Call setValueRange() in order to check the range before computing ticks in AxisPart.computeTicks().
1 parent 5ec0c60 commit a44dbdb

File tree

1 file changed

+1
-2
lines changed
  • app/rtplot/src/main/java/org/csstudio/javafx/rtplot/internal

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,7 @@ protected void computeTicks(final Graphics2D gc)
364364
{
365365
if (! dirty_ticks)
366366
return;
367-
Pair<T, T> adjustedRange = ticks.adjustRange(range.getLow(), range.getHigh());
368-
range = new AxisRange<>(adjustedRange.getKey(), adjustedRange.getValue());
367+
setValueRange(range.getLow(), range.getHigh()); // Performs checks and possibly adjusts range.
369368
if (horizontal)
370369
ticks.compute(range.getLow(), range.getHigh(), gc, getBounds().width);
371370
else

0 commit comments

Comments
 (0)