Commit ebc09014 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix bug 35300

parent 4cf710da
......@@ -107,9 +107,7 @@ StartAddNewShape.prototype =
if(oResult){
var oObject = AscCommon.g_oTableId.Get_ById(oResult.objectId);
if(oObject.getObjectType() === AscDFH.historyitem_type_Shape){
this.drawingObjects.connector = oObject;
}
this.drawingObjects.connector = oObject;
}
if(this.drawingObjects.connector !== this.oldConnector){
this.drawingObjects.updateOverlay();
......
......@@ -142,7 +142,8 @@ function NewShapeTrack(presetGeom, startX, startY, theme, master, layout, slide,
this.bConnector = AscFormat.isConnectorPreset(presetGeom);
if(this.bConnector){
var aSpTree = this.drawingsController.getAllShapes(this.drawingsController.getDrawingArray());
var aSpTree = [];
this.drawingsController.getAllSingularDrawings(this.drawingsController.getDrawingArray(), aSpTree);
var oConnector = null;
for(var i = aSpTree.length - 1; i > -1; --i){
oConnector = aSpTree[i].findConnector(startX, startY);
......
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