Commit 6a008ff7 authored by Alexander.Trofimov's avatar Alexander.Trofimov

update selection after change sparkline props

parent 04474543
...@@ -2620,6 +2620,7 @@ var editor; ...@@ -2620,6 +2620,7 @@ var editor;
var changedSparkline = AscCommon.g_oTableId.Get_ById(id); var changedSparkline = AscCommon.g_oTableId.Get_ById(id);
if (changedSparkline) { if (changedSparkline) {
changedSparkline.set(oSparklineGroup); changedSparkline.set(oSparklineGroup);
this.wb._onWSSelectionChanged();
this.wb.getWorksheet().draw(); this.wb.getWorksheet().draw();
} }
}; };
......
...@@ -5013,18 +5013,17 @@ CellArea.prototype = { ...@@ -5013,18 +5013,17 @@ CellArea.prototype = {
return true; return true;
}; };
sparklineGroup.prototype.asc_getStyles = function() sparklineGroup.prototype.asc_getStyles = function () {
{
var aRet = []; var aRet = [];
var nStyleIndex = -1; var nStyleIndex = -1;
for(var i = 0; i < 36; ++i){ for (var i = 0; i < 36; ++i) {
var oSparklineGroup = this.asc_createSparklineGroupByStyle(i); var oSparklineGroup = this.asc_createSparklineGroupByStyle(i);
if(nStyleIndex === -1 && this.isEqualColors(oSparklineGroup)){ if (nStyleIndex === -1 && this.isEqualColors(oSparklineGroup)) {
nStyleIndex = i; nStyleIndex = i;
} }
aRet.push(this.asc_getThumbBySparklineGroup(oSparklineGroup)); aRet.push(this.asc_getThumbBySparklineGroup(oSparklineGroup));
} }
aRet.push(nStyleIndex); aRet.push(nStyleIndex);
return aRet; return aRet;
}; };
......
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