Fix Bug 43772

This commit is contained in:
Julia Radzhabova 2019-12-05 11:16:19 +03:00
parent 7f2c495aa0
commit 56c951c763
7 changed files with 7 additions and 7 deletions

View file

@ -929,7 +929,7 @@ define([
var me = this;
var colors = fill.get_colors(),
positions = fill.get_positions(),
length = colors.length;
length = colors ? colors.length : this.GradColor.colors.length;
this.sldrGradient.setThumbs(length);
if (this.GradColor.colors.length>length) {
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);

View file

@ -622,7 +622,7 @@ define([
var me = this;
var colors = fill.get_colors(),
positions = fill.get_positions(),
length = colors.length;
length = colors ? colors.length : this.GradColor.colors.length;
this.sldrGradient.setThumbs(length);
if (this.GradColor.colors.length>length) {
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);

View file

@ -842,7 +842,7 @@ define([
var me = this;
var colors = fill.get_colors(),
positions = fill.get_positions(),
length = colors.length;
length = colors ? colors.length : this.GradColor.colors.length;
this.sldrGradient.setThumbs(length);
if (this.GradColor.colors.length>length) {
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);

View file

@ -1265,7 +1265,7 @@ define([
var me = this;
var colors = fill.get_colors(),
positions = fill.get_positions(),
length = colors.length;
length = colors ? colors.length : this.GradColor.colors.length;
this.sldrGradient.setThumbs(length);
if (this.GradColor.colors.length>length) {
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);

View file

@ -818,7 +818,7 @@ define([
var me = this;
var colors = fill.get_colors(),
positions = fill.get_positions(),
length = colors.length;
length = colors ? colors.length : this.GradColor.colors.length;
this.sldrGradient.setThumbs(length);
if (this.GradColor.colors.length>length) {
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);

View file

@ -866,7 +866,7 @@ define([
var me = this;
var colors = fill.asc_getColors(),
positions = fill.asc_getPositions(),
length = colors.length;
length = colors ? colors.length : this.GradColor.colors.length;
this.sldrGradient.setThumbs(length);
if (this.GradColor.colors.length>length) {
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);

View file

@ -822,7 +822,7 @@ define([
var me = this;
var colors = fill.asc_getColors(),
positions = fill.asc_getPositions(),
length = colors.length;
length = colors ? colors.length : this.GradColor.colors.length;
this.sldrGradient.setThumbs(length);
if (this.GradColor.colors.length>length) {
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);