]> git.tdb.fi Git - r2c2.git/commitdiff
Register pre-existing signals in Layout3D constructor
authorMikko Rasa <tdb@tdb.fi>
Sat, 25 May 2013 23:11:43 +0000 (02:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 25 May 2013 23:11:43 +0000 (02:11 +0300)
source/3d/layout.cpp

index 69af0d4dbed6f525ecd122d9b9916ed331ef2999..bd59e126a91befd5a87ce1678a76cca91df1c257 100644 (file)
@@ -26,6 +26,9 @@ Layout3D::Layout3D(Layout &l):
        const set<Track *> &ltracks = layout.get_tracks();
        for(set<Track *>::iterator i=ltracks.begin(); i!=ltracks.end(); ++i)
                track_added(**i);
+       const set<Signal *> &lsignals = layout.get_signals();
+       for(set<Signal *>::iterator i=lsignals.begin(); i!=lsignals.end(); ++i)
+               signal_added(**i);
 }
 
 Layout3D::~Layout3D()