[SSE] Fix Cell fill
This commit is contained in:
parent
3ab0f47dda
commit
582871f7f8
|
@ -394,6 +394,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
ChangeSettings: function(props) {
|
ChangeSettings: function(props) {
|
||||||
|
var me = this;
|
||||||
if (this._initSettings)
|
if (this._initSettings)
|
||||||
this.createDelayedElements();
|
this.createDelayedElements();
|
||||||
|
|
||||||
|
@ -497,7 +498,7 @@ define([
|
||||||
var gradientStops;
|
var gradientStops;
|
||||||
this.GradColors = [];
|
this.GradColors = [];
|
||||||
gradientStops = gradient.asc_getGradientStops();
|
gradientStops = gradient.asc_getGradientStops();
|
||||||
for(var color of gradientStops) {
|
gradientStops.forEach(function (color) {
|
||||||
var clr = color.asc_getColor(),
|
var clr = color.asc_getColor(),
|
||||||
position = color.asc_getPosition(),
|
position = color.asc_getPosition(),
|
||||||
itemColor;
|
itemColor;
|
||||||
|
@ -506,8 +507,8 @@ define([
|
||||||
} else {
|
} else {
|
||||||
itemColor = {Value: 1, Color: Common.Utils.ThemeColor.getHexColor(clr.getR(), clr.getG(), clr.getB()), Position: position};
|
itemColor = {Value: 1, Color: Common.Utils.ThemeColor.getHexColor(clr.getR(), clr.getG(), clr.getB()), Position: position};
|
||||||
}
|
}
|
||||||
this.GradColors.push(itemColor);
|
me.GradColors.push(itemColor);
|
||||||
}
|
});
|
||||||
this.GradColors = _.sortBy(this.GradColors, 'Position');
|
this.GradColors = _.sortBy(this.GradColors, 'Position');
|
||||||
|
|
||||||
this.OriginalFillType = Asc.c_oAscFill.FILL_TYPE_GRAD;
|
this.OriginalFillType = Asc.c_oAscFill.FILL_TYPE_GRAD;
|
||||||
|
|
Loading…
Reference in a new issue