Browse Source

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

Merge in DESIGN/design from ~ROGER.CHEN/design:release/11.0 to release/11.0

* commit '52f28dd0bf4befb0d0e573806942f74c3a0b3e87':
  REPORT-73741 fix: 公式校验报错信息中字符串位置从1开始
release/11.0
Roger.Chen 2 years ago
parent
commit
80084e5bdc
  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()) {
showMessageDialog(checkResult.getTips(), checkResult.isValid(), false);
} else {
int columns = checkResult.getFormulaCoordinates().getColumns();
int columns = checkResult.getFormulaCoordinates().getColumns() + 1;
String position = StringUtils.EMPTY;
if (columns >= 0) {
if (columns > 0) {
position = Toolkit.i18nText("Fine-Design_Basic_Formula_The") + columns
+ Toolkit.i18nText("Fine-Design_Basic_Formula_Error_Position") + " ";
}

Loading…
Cancel
Save