Commit 1e8b8983 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

сброс селекта при принятии изменений

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57141 954022d7-b5bf-4e40-9824-e11837661b57
parent c7106a75
...@@ -354,6 +354,11 @@ CHistory.prototype = ...@@ -354,6 +354,11 @@ CHistory.prototype =
wsViews[i].objectRender.controller.recalculate(true, null); wsViews[i].objectRender.controller.recalculate(true, null);
} }
} }
var wsView = window["Asc"]["editor"].wb.getWorksheet();
if(wsView && wsView.objectRender && wsView.objectRender.controller)
{
wsView.objectRender.controller.updateOverlay();
}
} }
if (null != Point) { if (null != Point) {
...@@ -364,6 +369,11 @@ CHistory.prototype = ...@@ -364,6 +369,11 @@ CHistory.prototype =
wsViews[i].objectRender.controller.recalculate(undefined, Point); wsViews[i].objectRender.controller.recalculate(undefined, Point);
} }
} }
var wsView = window["Asc"]["editor"].wb.getWorksheet();
if(wsView && wsView.objectRender && wsView.objectRender.controller)
{
wsView.objectRender.controller.updateOverlay();
}
gUndoInsDelCellsFlag = true; gUndoInsDelCellsFlag = true;
} }
//синхронизация index и id worksheet //синхронизация index и id worksheet
......
...@@ -1872,8 +1872,18 @@ Workbook.prototype.DeserializeHistory = function(aChanges, fCallback){ ...@@ -1872,8 +1872,18 @@ Workbook.prototype.DeserializeHistory = function(aChanges, fCallback){
} }
} }
window["Asc"]["editor"]._loadFonts(oFontMap, function(){ window["Asc"]["editor"]._loadFonts(oFontMap, function(){
History.Clear();
var wsViews = window["Asc"]["editor"].wb.wsViews;
for(var i in wsViews)
{
if(isRealObject(wsViews[i]) && isRealObject(wsViews[i].objectRender) && isRealObject(wsViews[i].objectRender.controller))
{
wsViews[i].objectRender.controller.resetSelection();
}
}
History.Clear();
History.Create_NewPoint(); History.Create_NewPoint();
History.SetSelection(null); History.SetSelection(null);
History.SetSelectionRedo(null); History.SetSelectionRedo(null);
var oHistoryPositions = null;//нужен самый последний historyitem_Workbook_SheetPositions var oHistoryPositions = null;//нужен самый последний historyitem_Workbook_SheetPositions
...@@ -1896,6 +1906,7 @@ Workbook.prototype.DeserializeHistory = function(aChanges, fCallback){ ...@@ -1896,6 +1906,7 @@ Workbook.prototype.DeserializeHistory = function(aChanges, fCallback){
History.RedoAdd(oRedoObjectParam, oHistoryPositions.oClass, oHistoryPositions.nActionType, oHistoryPositions.nSheetId, oHistoryPositions.oRange, oHistoryPositions.oData); History.RedoAdd(oRedoObjectParam, oHistoryPositions.oClass, oHistoryPositions.nActionType, oHistoryPositions.nSheetId, oHistoryPositions.oRange, oHistoryPositions.oData);
History.UndoRedoEnd(null, oRedoObjectParam, false); History.UndoRedoEnd(null, oRedoObjectParam, false);
oThis.bCollaborativeChanges = false; oThis.bCollaborativeChanges = false;
History.Clear(); History.Clear();
if(null != fCallback) if(null != fCallback)
......
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