Browse Source

REPORT-73741 fix: 公式校验报错信息中字符串位置从1开始

release/11.0
roger 2 years ago
parent
commit
52f28dd0bf
  1. 4
      designer-base/src/main/java/com/fr/design/formula/FormulaPane.java

4
designer-base/src/main/java/com/fr/design/formula/FormulaPane.java

@ -886,9 +886,9 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
if (checkResult.isValid()) { if (checkResult.isValid()) {
showMessageDialog(checkResult.getTips(), checkResult.isValid(), false); showMessageDialog(checkResult.getTips(), checkResult.isValid(), false);
} else { } else {
int columns = checkResult.getFormulaCoordinates().getColumns(); int columns = checkResult.getFormulaCoordinates().getColumns() + 1;
String position = StringUtils.EMPTY; String position = StringUtils.EMPTY;
if (columns >= 0) { if (columns > 0) {
position = Toolkit.i18nText("Fine-Design_Basic_Formula_The") + columns position = Toolkit.i18nText("Fine-Design_Basic_Formula_The") + columns
+ Toolkit.i18nText("Fine-Design_Basic_Formula_Error_Position") + " "; + Toolkit.i18nText("Fine-Design_Basic_Formula_Error_Position") + " ";
} }

Loading…
Cancel
Save