Skip to content

Commit

Permalink
CSSTUDIO-2412 Only set the default range [0, 100] when the range was …
Browse files Browse the repository at this point in the history
…not previously [0, 100].
  • Loading branch information
abrahamwolk committed May 15, 2024
1 parent 06d3a54 commit 290bc8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ else if (newObservedMinAndMaxValues && !Double.isNaN(observedMin) && !Double.isN
meter.setRange(observedMin - 1, observedMax + 1, false);
newObservedMinAndMaxValues = false;
}
else {
else if (meter.linearMeterScale.getValueRange().getLow() != 0.0 || meter.linearMeterScale.getValueRange().getHigh() != 100) {
meter.setRange(0.0, 100.0, false);
}
}
Expand Down

0 comments on commit 290bc8c

Please sign in to comment.