Skip to content

Commit

Permalink
Improved parameter series range suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Herzog committed Dec 14, 2023
1 parent 1618092 commit 216b82d
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ public ParameterCompareTemplatesDialog(final Component owner, final EditModel mo

final String minValue;
final String maxValue;
final String stepValue;
String stepValue;
if (initialValue==null) {
minValue=initialValueString;
maxValue=initialValueString;
Expand All @@ -660,9 +660,17 @@ public ParameterCompareTemplatesDialog(final Component owner, final EditModel mo
if (l==0) l=1;
stepValue=NumberTools.formatLong(l);
} else {
minValue=NumberTools.formatNumber(min);
maxValue=NumberTools.formatNumber(max);
stepValue=NumberTools.formatNumber(stepWide);
if (max>10) {
minValue=NumberTools.formatNumber(min);
maxValue=NumberTools.formatNumber(max);
stepValue=NumberTools.formatNumber(stepWide);
if (stepValue.equals("0")) stepValue=NumberTools.formatNumber(stepWide,3);
} else {
minValue=NumberTools.formatNumber(min,3);
maxValue=NumberTools.formatNumber(max,3);
stepValue=NumberTools.formatNumber(stepWide,3);
if (stepValue.equals("0")) stepValue=NumberTools.formatNumber(stepWide,5);
}
}
}

Expand Down

0 comments on commit 216b82d

Please sign in to comment.