]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/manipulator.cpp
Major architecture rework
[r2c2.git] / source / designer / manipulator.cpp
index e690c1d43aa34bf242361a0e485d49117a4b4574..dfcdd2cccbdc859a08c4cf6326aba090bf2e1696 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2010  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -67,8 +67,7 @@ void Manipulator::duplicate()
        list<Track *> new_tracks;
        for(vector<MTrack>::iterator i=tracks.begin(); i!=tracks.end(); ++i)
        {
-               Track *track = i->track->copy();
-               designer.get_layout()->add_track(*track);
+               Track *track = new Track(*designer.get_layout(), i->track->get_type());
                new_tracks.push_back(track);
        }
 
@@ -355,8 +354,6 @@ void Manipulator::render()
        glPopMatrix();
 }
 
-/*** private ***/
-
 void Manipulator::selection_changed()
 {
        if(mode)