Browse Source

REPORT-16689 重复与冻结设置初始值大于尾值没有恢复默认初始值

bugfix/10.0
Hades 6 years ago
parent
commit
d1c3ccc12c
  1. 2
      designer-realize/src/main/java/com/fr/design/report/freeze/RepeatColPane.java
  2. 2
      designer-realize/src/main/java/com/fr/design/report/freeze/RepeatRowPane.java

2
designer-realize/src/main/java/com/fr/design/report/freeze/RepeatColPane.java

@ -21,9 +21,11 @@ public class RepeatColPane extends FreezeAndRepeatPane {
@Override @Override
public void populateBean(FT ob) { public void populateBean(FT ob) {
if (ob.getFrom() <= ob.getTo()) {
((ColSpinner)start).setValue((ob.getFrom() + 1)); ((ColSpinner)start).setValue((ob.getFrom() + 1));
((ColSpinner)end).setValue((ob.getTo() + 1)); ((ColSpinner)end).setValue((ob.getTo() + 1));
} }
}
@Override @Override
public FT updateBean() { public FT updateBean() {

2
designer-realize/src/main/java/com/fr/design/report/freeze/RepeatRowPane.java

@ -21,9 +21,11 @@ public class RepeatRowPane extends FreezeAndRepeatPane {
@Override @Override
public void populateBean(FT ob) { public void populateBean(FT ob) {
if (ob.getFrom() <= ob.getTo()) {
((RowSpinner)start).setValue((ob.getFrom() + 1)); ((RowSpinner)start).setValue((ob.getFrom() + 1));
((RowSpinner)end).setValue((ob.getTo() + 1)); ((RowSpinner)end).setValue((ob.getTo() + 1));
} }
}
@Override @Override
public FT updateBean() { public FT updateBean() {

Loading…
Cancel
Save