Fix Bug 54917
This commit is contained in:
parent
05b7bc4212
commit
cd39943c81
|
@ -2193,7 +2193,8 @@ define([
|
|||
|
||||
var me = this,
|
||||
shapegrouparray = [],
|
||||
shapeStore = this.getCollection('ShapeGroups');
|
||||
shapeStore = this.getCollection('ShapeGroups'),
|
||||
name_arr = {};
|
||||
|
||||
shapeStore.reset();
|
||||
|
||||
|
@ -2208,12 +2209,15 @@ define([
|
|||
width = 30 * cols;
|
||||
|
||||
_.each(shapes[index], function(shape, idx){
|
||||
var name = me['txtShape_' + shape.Type];
|
||||
arr.push({
|
||||
data : {shapeType: shape.Type},
|
||||
tip : me['txtShape_' + shape.Type] || (me.textShape + ' ' + (idx+1)),
|
||||
tip : name || (me.textShape + ' ' + (idx+1)),
|
||||
allowSelected : true,
|
||||
selected: false
|
||||
});
|
||||
if (name)
|
||||
name_arr[shape.Type] = name;
|
||||
});
|
||||
store.add(arr);
|
||||
shapegrouparray.push({
|
||||
|
@ -2228,6 +2232,7 @@ define([
|
|||
setTimeout(function(){
|
||||
me.getApplication().getController('Toolbar').onApiAutoShapes();
|
||||
}, 50);
|
||||
this.api.asc_setShapeNames(name_arr);
|
||||
},
|
||||
|
||||
fillTextArt: function(shapes){
|
||||
|
|
|
@ -1905,7 +1905,8 @@ define([
|
|||
return;
|
||||
|
||||
var me = this,
|
||||
shapegrouparray = [];
|
||||
shapegrouparray = [],
|
||||
name_arr = {};
|
||||
|
||||
_.each(groupNames, function(groupName, index){
|
||||
var store = new Backbone.Collection([], {
|
||||
|
@ -1918,12 +1919,15 @@ define([
|
|||
width = 30 * cols;
|
||||
|
||||
_.each(shapes[index], function(shape, idx){
|
||||
var name = me['txtShape_' + shape.Type];
|
||||
arr.push({
|
||||
data : {shapeType: shape.Type},
|
||||
tip : me['txtShape_' + shape.Type] || (me.textShape + ' ' + (idx+1)),
|
||||
tip : name || (me.textShape + ' ' + (idx+1)),
|
||||
allowSelected : true,
|
||||
selected: false
|
||||
});
|
||||
if (name)
|
||||
name_arr[shape.Type] = name;
|
||||
});
|
||||
store.add(arr);
|
||||
shapegrouparray.push({
|
||||
|
@ -1935,6 +1939,7 @@ define([
|
|||
});
|
||||
|
||||
this.getCollection('ShapeGroups').reset(shapegrouparray);
|
||||
this.api.asc_setShapeNames(name_arr);
|
||||
},
|
||||
|
||||
fillLayoutsStore: function(layouts){
|
||||
|
|
|
@ -2349,7 +2349,8 @@ define([
|
|||
|
||||
var me = this,
|
||||
shapegrouparray = [],
|
||||
shapeStore = this.getCollection('ShapeGroups');
|
||||
shapeStore = this.getCollection('ShapeGroups'),
|
||||
name_arr = {};
|
||||
|
||||
shapeStore.reset();
|
||||
|
||||
|
@ -2364,12 +2365,15 @@ define([
|
|||
width = 30 * cols;
|
||||
|
||||
_.each(shapes[index], function(shape, idx){
|
||||
var name = me['txtShape_' + shape.Type];
|
||||
arr.push({
|
||||
data : {shapeType: shape.Type},
|
||||
tip : me['txtShape_' + shape.Type] || (me.textShape + ' ' + (idx+1)),
|
||||
tip : name || (me.textShape + ' ' + (idx+1)),
|
||||
allowSelected : true,
|
||||
selected: false
|
||||
});
|
||||
if (name)
|
||||
name_arr[shape.Type] = name;
|
||||
});
|
||||
store.add(arr);
|
||||
shapegrouparray.push({
|
||||
|
@ -2385,6 +2389,7 @@ define([
|
|||
setTimeout(function(){
|
||||
me.getApplication().getController('Toolbar').onApiAutoShapes();
|
||||
}, 50);
|
||||
this.api.asc_setShapeNames(name_arr);
|
||||
},
|
||||
|
||||
fillTextArt: function(shapes){
|
||||
|
|
Loading…
Reference in a new issue