From 6da70788daae7c63f686388d93a083458f94147a Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 5 Mar 2019 14:29:29 +0300 Subject: [PATCH] [DE] Fix formula string --- apps/documenteditor/main/app/view/TableFormulaDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/TableFormulaDialog.js b/apps/documenteditor/main/app/view/TableFormulaDialog.js index 2887511dd..1cf41da8e 100644 --- a/apps/documenteditor/main/app/view/TableFormulaDialog.js +++ b/apps/documenteditor/main/app/view/TableFormulaDialog.js @@ -189,7 +189,7 @@ define([ }); this.cmbFormat.setData(arr); var formula = this.api.asc_GetTableFormula(), - idx = formula.lastIndexOf('/\#'); + idx = formula.lastIndexOf('\\#'); this.inputFormula.setValue(formula.substring(0, (idx>-1) ? idx : formula.length)); if (idx>-1) this.cmbFormat.setValue(formula.substring(idx+2, formula.length)); @@ -218,7 +218,7 @@ define([ }, getSettings: function () { - return (this.inputFormula.getValue() + '/\#' + this.cmbFormat.getValue()); + return (this.inputFormula.getValue() + '\\#' + this.cmbFormat.getValue()); }, onBtnClick: function(event) {