Merge pull request #359 from ONLYOFFICE/feature/for-hotfix-5.5.1

Feature/for hotfix 5.5.1
This commit is contained in:
Julia Radzhabova 2020-03-05 14:43:32 +03:00 committed by GitHub
commit b7dfd67d58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -481,6 +481,7 @@ 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) {
if (color.asc_getType() == Asc.c_oAscColor.COLOR_TYPE_SCHEME) { if (color.asc_getType() == Asc.c_oAscColor.COLOR_TYPE_SCHEME) {
this.CellColor = { this.CellColor = {
Value: 1, Value: 1,
@ -499,6 +500,10 @@ define([
Value: 1, Value: 1,
Color: Common.Utils.ThemeColor.colorValue2EffectId(this.CellColor.Color) Color: Common.Utils.ThemeColor.colorValue2EffectId(this.CellColor.Color)
}; };
} else {
this.FGColor = this.CellColor = {Value: 1, Color: 'ffffff'};
}
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;
@ -536,7 +541,7 @@ define([
}; };
} }
} else } else
this.FGColor = {Value: 1, Color: {color: '4f81bd', effectId: 24}}; this.FGColor = {Value: 1, Color: {color: '000000', effectId: 24}};
color = this.pattern.asc_getBgColor(); color = this.pattern.asc_getBgColor();
if (color) { if (color) {