Commit d5ff6fd0 authored by Alexander.Trofimov's avatar Alexander.Trofimov

При выборе диапазона с другого листа не рисуем activeRange листа.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68121 954022d7-b5bf-4e40-9824-e11837661b57
parent 786e01ae
...@@ -1751,12 +1751,12 @@ ...@@ -1751,12 +1751,12 @@
CellEditor.prototype._changeSelection = function ( coord ) { CellEditor.prototype._changeSelection = function ( coord ) {
var t = this; var t = this;
function doChangeSelection( coord ) { function doChangeSelection( coordTmp ) {
// ToDo реализовать для слова. // ToDo реализовать для слова.
if ( c_oAscCellEditorSelectState.word === t.isSelectMode ) { if ( c_oAscCellEditorSelectState.word === t.isSelectMode ) {
return; return;
} }
var pos = t._findCursorPosition( coord ); var pos = t._findCursorPosition( coordTmp );
if ( pos !== undefined ) { if ( pos !== undefined ) {
pos >= 0 ? t._selectChars( kPosition, pos ) : t._selectChars( pos ); pos >= 0 ? t._selectChars( kPosition, pos ) : t._selectChars( pos );
} }
......
...@@ -540,7 +540,9 @@ ...@@ -540,7 +540,9 @@
}, "onScroll": function(d) { }, "onScroll": function(d) {
self.controller.scroll(d); self.controller.scroll(d);
}, "getLockDefNameManagerStatus": function() { }, "getLockDefNameManagerStatus": function() {
return self.defNameAllowCreate return self.defNameAllowCreate;
}, 'isActive': function() {
return (-1 === self.copyActiveSheet || self.wsActive === self.copyActiveSheet);
}, },
"getCellEditMode": function() { "getCellEditMode": function() {
return self.isCellEditMode; return self.isCellEditMode;
...@@ -1431,7 +1433,7 @@ ...@@ -1431,7 +1433,7 @@
this.copyActiveSheet = this.wsActive; this.copyActiveSheet = this.wsActive;
if( !this.cellFormulaEnterWSOpen ){ if( !this.cellFormulaEnterWSOpen ){
this.cellFormulaEnterWSOpen = tmpWorksheet = ws; this.cellFormulaEnterWSOpen = ws;
} else { } else {
ws.setFormulaEditMode(false); ws.setFormulaEditMode(false);
} }
......
...@@ -3607,10 +3607,15 @@ ...@@ -3607,10 +3607,15 @@
if ( !this.isSelectionDialogMode ) { if ( !this.isSelectionDialogMode ) {
this._drawCollaborativeElements( /*bIsDrawObjects*/true ); this._drawCollaborativeElements( /*bIsDrawObjects*/true );
this._drawSelectionRange( range );
} }
else { if ((this.isSelectionDialogMode || this.isFormulaEditMode) && !this.handlers.trigger('isActive')) {
this._drawSelectionRange( range ); if (this.isSelectionDialogMode) {
this._drawSelectRange(this.activeRange.clone(true));
} else if (this.isFormulaEditMode) {
this._drawFormulaRanges(this.arrActiveFormulaRanges);
}
} else {
this._drawSelectionRange(range);
} }
}; };
......
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