[SSE] Fix bug 43764

This commit is contained in:
Julia Svinareva 2019-12-05 13:49:45 +03:00
parent 56c951c763
commit cc37bd9e59

View file

@ -1068,7 +1068,7 @@ define([
var arrGradStop = []; var arrGradStop = [];
this.GradColor.values.forEach(function (item, index) { this.GradColor.values.forEach(function (item, index) {
var gradientStop = new Asc.asc_CGradientStop(); var gradientStop = new Asc.asc_CGradientStop();
gradientStop.asc_setColor(Common.Utils.ThemeColor.getRgbColor(me.GradColor.colors[index])); gradientStop.asc_setColor(Common.Utils.ThemeColor.getRgbColor(Common.Utils.ThemeColor.colorValue2EffectId(me.GradColor.colors[index])));
gradientStop.asc_setPosition(me.GradColor.values[index]/100); gradientStop.asc_setPosition(me.GradColor.values[index]/100);
arrGradStop.push(gradientStop); arrGradStop.push(gradientStop);
}); });
@ -1124,7 +1124,7 @@ define([
var arrGradStop = []; var arrGradStop = [];
this.GradColor.colors.forEach(function (item, index) { this.GradColor.colors.forEach(function (item, index) {
var gradientStop = new Asc.asc_CGradientStop(); var gradientStop = new Asc.asc_CGradientStop();
gradientStop.asc_setColor(Common.Utils.ThemeColor.getRgbColor(me.GradColor.colors[index])); gradientStop.asc_setColor(Common.Utils.ThemeColor.getRgbColor(Common.Utils.ThemeColor.colorValue2EffectId(me.GradColor.colors[index])));
gradientStop.asc_setPosition(me.GradColor.values[index]/100); gradientStop.asc_setPosition(me.GradColor.values[index]/100);
arrGradStop.push(gradientStop); arrGradStop.push(gradientStop);
}); });