Browse Source

Merge pull request #9199 in DESIGN/design from release/11.0 to final/11.0

* commit '80084e5bdcd5474c8178e91115b8bed16472a0c7':
  REPORT-73741 fix: 公式校验报错信息中字符串位置从1开始
new-design
superman 2 years ago
parent
commit
6564ac6737
  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