Fix Bug 43772
This commit is contained in:
parent
7f2c495aa0
commit
56c951c763
|
@ -929,7 +929,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var colors = fill.get_colors(),
|
var colors = fill.get_colors(),
|
||||||
positions = fill.get_positions(),
|
positions = fill.get_positions(),
|
||||||
length = colors.length;
|
length = colors ? colors.length : this.GradColor.colors.length;
|
||||||
this.sldrGradient.setThumbs(length);
|
this.sldrGradient.setThumbs(length);
|
||||||
if (this.GradColor.colors.length>length) {
|
if (this.GradColor.colors.length>length) {
|
||||||
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
||||||
|
|
|
@ -622,7 +622,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var colors = fill.get_colors(),
|
var colors = fill.get_colors(),
|
||||||
positions = fill.get_positions(),
|
positions = fill.get_positions(),
|
||||||
length = colors.length;
|
length = colors ? colors.length : this.GradColor.colors.length;
|
||||||
this.sldrGradient.setThumbs(length);
|
this.sldrGradient.setThumbs(length);
|
||||||
if (this.GradColor.colors.length>length) {
|
if (this.GradColor.colors.length>length) {
|
||||||
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
||||||
|
|
|
@ -842,7 +842,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var colors = fill.get_colors(),
|
var colors = fill.get_colors(),
|
||||||
positions = fill.get_positions(),
|
positions = fill.get_positions(),
|
||||||
length = colors.length;
|
length = colors ? colors.length : this.GradColor.colors.length;
|
||||||
this.sldrGradient.setThumbs(length);
|
this.sldrGradient.setThumbs(length);
|
||||||
if (this.GradColor.colors.length>length) {
|
if (this.GradColor.colors.length>length) {
|
||||||
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
||||||
|
|
|
@ -1265,7 +1265,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var colors = fill.get_colors(),
|
var colors = fill.get_colors(),
|
||||||
positions = fill.get_positions(),
|
positions = fill.get_positions(),
|
||||||
length = colors.length;
|
length = colors ? colors.length : this.GradColor.colors.length;
|
||||||
this.sldrGradient.setThumbs(length);
|
this.sldrGradient.setThumbs(length);
|
||||||
if (this.GradColor.colors.length>length) {
|
if (this.GradColor.colors.length>length) {
|
||||||
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
||||||
|
|
|
@ -818,7 +818,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var colors = fill.get_colors(),
|
var colors = fill.get_colors(),
|
||||||
positions = fill.get_positions(),
|
positions = fill.get_positions(),
|
||||||
length = colors.length;
|
length = colors ? colors.length : this.GradColor.colors.length;
|
||||||
this.sldrGradient.setThumbs(length);
|
this.sldrGradient.setThumbs(length);
|
||||||
if (this.GradColor.colors.length>length) {
|
if (this.GradColor.colors.length>length) {
|
||||||
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
||||||
|
|
|
@ -866,7 +866,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var colors = fill.asc_getColors(),
|
var colors = fill.asc_getColors(),
|
||||||
positions = fill.asc_getPositions(),
|
positions = fill.asc_getPositions(),
|
||||||
length = colors.length;
|
length = colors ? colors.length : this.GradColor.colors.length;
|
||||||
this.sldrGradient.setThumbs(length);
|
this.sldrGradient.setThumbs(length);
|
||||||
if (this.GradColor.colors.length>length) {
|
if (this.GradColor.colors.length>length) {
|
||||||
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
||||||
|
|
|
@ -822,7 +822,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var colors = fill.asc_getColors(),
|
var colors = fill.asc_getColors(),
|
||||||
positions = fill.asc_getPositions(),
|
positions = fill.asc_getPositions(),
|
||||||
length = colors.length;
|
length = colors ? colors.length : this.GradColor.colors.length;
|
||||||
this.sldrGradient.setThumbs(length);
|
this.sldrGradient.setThumbs(length);
|
||||||
if (this.GradColor.colors.length>length) {
|
if (this.GradColor.colors.length>length) {
|
||||||
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
this.GradColor.colors.splice(length, this.GradColor.colors.length - length);
|
||||||
|
|
Loading…
Reference in a new issue