Commit f958e35d authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

showWorksheet добавлена проверка cellEditor, которого нет в сборщике.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68083 954022d7-b5bf-4e40-9824-e11837661b57
parent d2a74d42
......@@ -1468,7 +1468,7 @@
var ws = this.getWorksheet();
// Останавливаем ввод данных в редакторе ввода. Если в режиме ввода формул, то продолжаем работать с cellEditor'ом, чтобы можно было
// выбирать ячейки для формулы
if (ws.getCellEditMode() && !this.cellEditor.isFormula() && !isResized)
if (ws.getCellEditMode() && !(this.cellEditor && this.cellEditor.isFormula()) && !isResized)
this._onStopCellEditing();
// Делаем очистку селекта
ws.cleanSelection();
......@@ -1478,19 +1478,21 @@
// if( ws && ws.getCellEditMode() && this.cellEditor.isFormula() ){
/*запоминаем лист, на котором был открыт редактор ячейки, для работы cellEditor в режиме ввода ячеек с другого листа*/
if( this.cellEditor.formulaIsOperator() ){
var _ws = this.getWorksheet()
if( !this.cellFormulaEnterWSOpen )
this.cellFormulaEnterWSOpen = tmpWorksheet = _ws;
if (this.cellEditor) {
if( this.cellEditor.formulaIsOperator() ){
var _ws = this.getWorksheet()
if( !this.cellFormulaEnterWSOpen )
this.cellFormulaEnterWSOpen = tmpWorksheet = _ws;
else{
this.cellEditor._showCanvas();
_ws.setFormulaEditMode(false);
}
}
else{
this.cellEditor._showCanvas();
_ws.setFormulaEditMode(false);
if (this.getWorksheet().getCellEditMode() && !isResized)
this._onStopCellEditing();
}
}
else{
if (this.getWorksheet().getCellEditMode() && !isResized)
this._onStopCellEditing();
}
// }
if (c_oAscSelectionDialogType.Chart === this.selectionDialogType) {
......@@ -1531,18 +1533,19 @@
ws.objectRender.controller.updateSelectionState();
ws.objectRender.controller.updateOverlay();
}
if (this.cellEditor) {
if( this.cellFormulaEnterWSOpen && ws.model.getId() == this.cellFormulaEnterWSOpen.model.getId() ){
this.cellFormulaEnterWSOpen = null;
this.cellEditor._showCanvas();
}
if( this.cellFormulaEnterWSOpen && ws.model.getId() == this.cellFormulaEnterWSOpen.model.getId() ){
this.cellFormulaEnterWSOpen = null;
this.cellEditor._showCanvas();
}
if ( this.cellFormulaEnterWSOpen && this.cellFormulaEnterWSOpen.getCellEditMode() && this.cellEditor.isFormula() && ws.model.getId() != this.cellFormulaEnterWSOpen.model.getId() ) {
/*скрываем cellEditor, в редактор добавляем %selected sheet name%+"!" */
this.cellFormulaEnterWSOpen.setFormulaEditMode( true );
this.cellEditor._hideCanvas();
ws.cleanSelection();
ws.setFormulaEditMode(true);
if ( this.cellFormulaEnterWSOpen && this.cellFormulaEnterWSOpen.getCellEditMode() && this.cellEditor.isFormula() && ws.model.getId() != this.cellFormulaEnterWSOpen.model.getId() ) {
/*скрываем cellEditor, в редактор добавляем %selected sheet name%+"!" */
this.cellFormulaEnterWSOpen.setFormulaEditMode( true );
this.cellEditor._hideCanvas();
ws.cleanSelection();
ws.setFormulaEditMode(true);
}
}
if (isSendInfo) {
......
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