Commit 95e43656 authored by konovalovsergey's avatar konovalovsergey

selectionRange.update

parent 4516f588
......@@ -6579,6 +6579,7 @@
res = this.bcr.Read1(length, function (t, l) {
return oThis.ReadSelection(t, l, oThis.curWorksheet.selectionRange);
});
this.curWorksheet.selectionRange.update();
} else
res = c_oSerConstants.ReadUnknown;
return res;
......@@ -6611,6 +6612,7 @@
} else if (c_oSer_Selection.Sqref === type) {
var sqref = this.stream.GetString2LE(length);
var refs = sqref.split(' ');
var selectionOld = selectionRange.ranges;
selectionRange.ranges = [];
for (var i = 0; i < refs.length; ++i) {
var ref = AscCommonExcel.g_oRangeCache.getAscRange(refs[i]);
......@@ -6618,6 +6620,9 @@
selectionRange.ranges.push(ref.clone());
}
}
if (selectionRange.ranges.length === 0) {
selectionRange.ranges = selectionOld;
}
} else if (c_oSer_Selection.Pane === type) {
this.stream.GetUChar();
} else
......
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