diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index 80d7b94684..1df02c8b81 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -450,7 +450,7 @@ define([ } else { var res = this.api.asc_getCSVDelimiter(text); text = res.text; - delimiter = res.delimiter; + delimiter = res.delimiter || -1; delimiterChar = delimiter===-1 ? res.delimiterChar || '' : ''; this.cmbDelimiter.setValue(delimiter); this.inputDelimiter.setVisible(delimiter===-1);