Commit e11d862b authored by SergeyLuzyanin's avatar SergeyLuzyanin

skip original object in array drawings for connection

parent c35baf8c
......@@ -361,6 +361,9 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController
this.endShapeId = null;
this.endShapeIdx = null;
for(var i = aDrawings.length-1; i > -1; --i) {
if(aDrawings[i] === this.originalObject){
continue;
}
oConnectionInfo = aDrawings[i].findConnector(x, y);
if (oConnectionInfo) {
oNewShape = aDrawings[i];
......@@ -370,6 +373,9 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController
}
if(!this.oNewShape){
for(var i = aDrawings.length - 1; i > -1; --i){
if(aDrawings[i] === this.originalObject){
continue;
}
var oCs = aDrawings[i].findConnectionShape(x, y);
if(oCs ){
this.oNewShape = oCs;
......
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