Browse Source

Pull request #5501: REPORT-57202 FR11一轮回归-页面设置纸张大小问题

Merge in DESIGN/design from ~FANGLEI/design10.0:release/10.0 to release/10.0

* commit '1973d1796492b151db7209193114aa44be892e77':
  REPORT-57202 FR11一轮回归-页面设置纸张大小问题
zheng-1641779399395
fanglei 3 years ago
parent
commit
2b8b594963
  1. 2
      designer-realize/src/main/java/com/fr/design/report/PageSetupPane.java

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

@ -779,7 +779,7 @@ public class PageSetupPane extends BasicPane {
//使用科学计数法显示长度的时候,限制纵向显示长度为9位
if (h_str.contains(E)) {
String str1 = h_str.substring(h_str.indexOf(E));
String str2 = h_str.substring(0, 9 - str1.length());
String str2 = h_str.substring(0, Math.min(h_str.length(), 9) - str1.length());
h_str = str2 + str1;
} else if (h_str.indexOf(CoreConstants.DOT) > 0) {
h_str = h_str.substring(0, h_str.indexOf(CoreConstants.DOT) + 2);

Loading…
Cancel
Save