Commit c8dc9804 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE][PE] Fix Bug 35041.

parent c4b1316c
...@@ -501,6 +501,12 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem ...@@ -501,6 +501,12 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
} }
this.btnsCategory[2].setDisabled(null === margins); // Margins this.btnsCategory[2].setDisabled(null === margins); // Margins
var shapetype = props.asc_getType();
this.btnsCategory[3].setDisabled(shapetype=='line' || shapetype=='bentConnector2' || shapetype=='bentConnector3'
|| shapetype=='bentConnector4' || shapetype=='bentConnector5' || shapetype=='curvedConnector2'
|| shapetype=='curvedConnector3' || shapetype=='curvedConnector4' || shapetype=='curvedConnector5'
|| shapetype=='straightConnector1');
value = props.asc_getColumnNumber(); value = props.asc_getColumnNumber();
this.spnColumns.setValue((null !== value && undefined !== value) ? value : '', true); this.spnColumns.setValue((null !== value && undefined !== value) ? value : '', true);
......
...@@ -535,6 +535,12 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp ...@@ -535,6 +535,12 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp
} }
this.btnsCategory[2].setDisabled(null === margins); // Margins this.btnsCategory[2].setDisabled(null === margins); // Margins
var shapetype = shapeprops.asc_getType();
this.btnsCategory[3].setDisabled(shapetype=='line' || shapetype=='bentConnector2' || shapetype=='bentConnector3'
|| shapetype=='bentConnector4' || shapetype=='bentConnector5' || shapetype=='curvedConnector2'
|| shapetype=='curvedConnector3' || shapetype=='curvedConnector4' || shapetype=='curvedConnector5'
|| shapetype=='straightConnector1');
value = shapeprops.asc_getColumnNumber(); value = shapeprops.asc_getColumnNumber();
this.spnColumns.setValue((null !== value && undefined !== value) ? value : '', true); this.spnColumns.setValue((null !== value && undefined !== value) ? value : '', true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment