Commit 2ce41c20 authored by SergeyLuzyanin's avatar SergeyLuzyanin Committed by Alexey.Golubev

fix bug 35300

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