Commit 95e43656 authored by konovalovsergey's avatar konovalovsergey

selectionRange.update

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