]> git.tdb.fi Git - r2c2.git/commitdiff
Break link from the target track too before re-linking
authorMikko Rasa <tdb@tdb.fi>
Thu, 7 Nov 2013 19:42:24 +0000 (21:42 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 7 Nov 2013 19:42:24 +0000 (21:42 +0200)
source/libr2c2/track.cpp

index 23f1b9e2b6da280d7179276de2d8e1d1afa1a112..25159863917ab266de87bd44b5472f01702242d0 100644 (file)
@@ -332,6 +332,7 @@ bool Track::link_to(Object &other)
                        if(dot(span, span)<limit && abs(da).radians()<0.01)
                        {
                                break_link(i);
+                               otrack->break_link(j);
                                links[i] = otrack;
                                otrack->links[j] = this;
                                check_slope();