Commit 1b9ac3a6 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

Падение в минимизированном СДК

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68073 954022d7-b5bf-4e40-9824-e11837661b57
parent 700418de
......@@ -807,8 +807,9 @@
var parres = parserTest.parse(s,cb);
var __e__ = new Date().getTime();
console.log("e-s "+ (__e__ - __s__));*/
var ws = this.handlers.trigger("getCellFormulaEnterWSOpen" ).model || this.handlers.trigger("getActiveWS");
this._formula = new parserFormula( s.substr( 1 ), "A1", Asc.editor.wbModel.getActiveWs() );
this._formula = new parserFormula( s.substr( 1 ), "A1", ws );
this._formula.parse();
var r, offset, _e, _s, wsName = null;
......@@ -852,6 +853,23 @@
_s = _e - r.oper.value.length;
break;
}
/*case cElementType.name :{
continue;
var nameRef = r.oper.toRef();
switch( nameRef.type ){
case cElementType.cellsRange :{
break;
}
case cElementType.cellsRange3D :{
break;
}
case cElementType.cell3D :{
break;
}
}
wsName = nameRef.getWS().getName();
break;
}*/
default : continue;
}
......@@ -884,9 +902,10 @@
}
/*не нашли диапазонов под курсором, парсим формулу*/
var r, offset, _e, _s, wsName = null, ret = false;
var r, offset, _e, _s, wsName = null, ret = false,
ws = this.handlers.trigger("getCellFormulaEnterWSOpen" ).model || this.handlers.trigger("getActiveWS");
this._formula = new parserFormula( s.substr( 1 ), "A1", Asc.editor.wbModel.getActiveWs() );
this._formula = new parserFormula( s.substr( 1 ), "A1", ws );
this._formula.parse();
if ( this._formula.RefPos && this._formula.RefPos.length > 0 ) {
......
......@@ -499,6 +499,8 @@
return self.cellFormulaEnterWSOpen ? self.cellFormulaEnterWSOpen.getFormulaRanges() : self.getWorksheet().getFormulaRanges();
}, "getCellFormulaEnterWSOpen": function() {
return self.cellFormulaEnterWSOpen;
}, "getActiveWS": function() {
return self.getWorksheet().model;
}, "setStrictClose": function(val) {
self.controller.setStrictClose(val);
}, "updateEditorSelectionInfo": function(info) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment