[SSE] Bug 44748
This commit is contained in:
parent
a3edf07621
commit
840d81e592
|
@ -481,24 +481,29 @@ define([
|
||||||
} else if (this.pattern !== null) {
|
} else if (this.pattern !== null) {
|
||||||
if (this.pattern.asc_getType() === -1) {
|
if (this.pattern.asc_getType() === -1) {
|
||||||
var color = this.pattern.asc_getFgColor();
|
var color = this.pattern.asc_getFgColor();
|
||||||
if (color.asc_getType() == Asc.c_oAscColor.COLOR_TYPE_SCHEME) {
|
if (color) {
|
||||||
this.CellColor = {
|
if (color.asc_getType() == Asc.c_oAscColor.COLOR_TYPE_SCHEME) {
|
||||||
|
this.CellColor = {
|
||||||
|
Value: 1,
|
||||||
|
Color: {
|
||||||
|
color: Common.Utils.ThemeColor.getHexColor(color.asc_getR(), color.asc_getG(), color.asc_getB()),
|
||||||
|
effectValue: color.asc_getValue()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
this.CellColor = {
|
||||||
|
Value: 1,
|
||||||
|
Color: Common.Utils.ThemeColor.getHexColor(color.asc_getR(), color.asc_getG(), color.asc_getB())
|
||||||
|
};
|
||||||
|
}
|
||||||
|
this.FGColor = {
|
||||||
Value: 1,
|
Value: 1,
|
||||||
Color: {
|
Color: Common.Utils.ThemeColor.colorValue2EffectId(this.CellColor.Color)
|
||||||
color: Common.Utils.ThemeColor.getHexColor(color.asc_getR(), color.asc_getG(), color.asc_getB()),
|
|
||||||
effectValue: color.asc_getValue()
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
this.CellColor = {
|
this.FGColor = this.CellColor = {Value: 1, Color: 'ffffff'};
|
||||||
Value: 1,
|
|
||||||
Color: Common.Utils.ThemeColor.getHexColor(color.asc_getR(), color.asc_getG(), color.asc_getB())
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
this.FGColor = {
|
|
||||||
Value: 1,
|
|
||||||
Color: Common.Utils.ThemeColor.colorValue2EffectId(this.CellColor.Color)
|
|
||||||
};
|
|
||||||
this.BGColor = {Value: 1, Color: 'ffffff'};
|
this.BGColor = {Value: 1, Color: 'ffffff'};
|
||||||
this.sldrGradient.setThumbs(2);
|
this.sldrGradient.setThumbs(2);
|
||||||
this.GradColor.colors.length = 0;
|
this.GradColor.colors.length = 0;
|
||||||
|
|
Loading…
Reference in a new issue