Commit 4120ea4d authored by konovalovsergey's avatar konovalovsergey

apply selection from changes: on open, on not active sheets

parent 2ee4f2fe
......@@ -3867,14 +3867,18 @@ UndoRedoAutoFilters.prototype = {
return res;
};
UndoRedoSheetView.prototype._setState = function(state) {
if (window["NATIVE_EDITOR_ENJINE"]) {
var bApply = window["NATIVE_EDITOR_ENJINE"] || !this.wb.oApi.IsSendDocumentLoadCompleate;
if (bApply) {
if (null != state.active) {
var ws = this.wb.getWorksheetById(state.active);
if (ws) {
this.wb.setActive(ws.getIndex());
}
}
}
var sheetIdActive = this.wb.getActiveWs().getId();
for (var sheetId in state.sheets) {
if (bApply || sheetIdActive !== sheetId) {
var elem = state.sheets[sheetId];
var ws = this.wb.getWorksheetById(sheetId);
if (elem && ws) {
......
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