Fix Bug 50044

This commit is contained in:
Julia Radzhabova 2021-04-27 17:31:38 +03:00
parent 2a75e05bfa
commit dce1a7a54c
4 changed files with 6 additions and 8 deletions

View file

@ -489,7 +489,7 @@ define([
onBorderColor: function (palette, color) {
var me = this,
currentShape = _shapeObject.get_ShapeProperties();
currentShape = _shapeObject ? _shapeObject.get_ShapeProperties() : null;
$('#edit-chart-bordercolor .color-preview').css('background-color', ('transparent' == color) ? color : ('#' + (_.isObject(color) ? color.color : color)));
_borderColor = color;

View file

@ -449,8 +449,7 @@ define([
},
onFillColor: function(palette, color) {
var me = this,
currentShape = _shapeObject.get_ShapeProperties();
var me = this;
if (me.api) {
var image = new Asc.asc_CImgProperty(),
@ -475,7 +474,7 @@ define([
onBorderColor: function (palette, color) {
var me = this,
currentShape = _shapeObject.get_ShapeProperties();
currentShape = _shapeObject ? _shapeObject.get_ShapeProperties() : null;
$('#edit-shape-bordercolor .color-preview').css('background-color', ('transparent' == color) ? color : ('#' + (_.isObject(color) ? color.color : color)));
_borderColor = color;

View file

@ -626,7 +626,7 @@ define([
onBorderColor: function (palette, color) {
var me = this,
currentShape = _shapeObject.get_ShapeProperties();
currentShape = _shapeObject ? _shapeObject.get_ShapeProperties() : null;
$('#edit-chart-bordercolor .color-preview').css('background-color', ('transparent' == color) ? color : ('#' + (_.isObject(color) ? color.color : color)));
_borderInfo.color = color;

View file

@ -301,8 +301,7 @@ define([
},
onFillColor: function(palette, color) {
var me = this,
currentShape = _shapeObject.get_ShapeProperties();
var me = this;
if (me.api) {
var image = new Asc.asc_CImgProperty(),
@ -327,7 +326,7 @@ define([
onBorderColor: function (palette, color) {
var me = this,
currentShape = _shapeObject.get_ShapeProperties();
currentShape = _shapeObject ? _shapeObject.get_ShapeProperties() : null;
$('#edit-shape-bordercolor .color-preview').css('background-color', ('transparent' == color) ? color : ('#' + (_.isObject(color) ? color.color : color)));
_borderInfo.color = color;