Commit 5456e8d1 authored by Alexander.Trofimov's avatar Alexander.Trofimov

clone sparkline group with id

parent 081fd81d
...@@ -5696,7 +5696,7 @@ Woorksheet.prototype.updateSparklineCache = function(sheet, ranges) { ...@@ -5696,7 +5696,7 @@ Woorksheet.prototype.updateSparklineCache = function(sheet, ranges) {
Woorksheet.prototype.getSparklineGroup = function(c, r) { Woorksheet.prototype.getSparklineGroup = function(c, r) {
for (var i = 0; i < this.aSparklineGroups.length; ++i) { for (var i = 0; i < this.aSparklineGroups.length; ++i) {
if (-1 !== this.aSparklineGroups[i].contains(c, r)) { if (-1 !== this.aSparklineGroups[i].contains(c, r)) {
return this.aSparklineGroups[i]; return this.aSparklineGroups[i].clone(true);
} }
} }
return null; return null;
......
...@@ -4692,6 +4692,7 @@ CellArea.prototype = { ...@@ -4692,6 +4692,7 @@ CellArea.prototype = {
}; };
sparklineGroup.prototype.clone = function (onlyProps) { sparklineGroup.prototype.clone = function (onlyProps) {
var res = new sparklineGroup(!onlyProps); var res = new sparklineGroup(!onlyProps);
res.Id = this.Id;
res.manualMax = this.manualMax; res.manualMax = this.manualMax;
res.manualMin = this.manualMin; res.manualMin = this.manualMin;
res.lineWeight = this.lineWeight; res.lineWeight = this.lineWeight;
......
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