X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fmanipulator.cpp;h=dfcdd2cccbdc859a08c4cf6326aba090bf2e1696;hb=651698847d5293cfb15b6fb23a394701388c0151;hp=e690c1d43aa34bf242361a0e485d49117a4b4574;hpb=dcfa1e9503b7e97b61396d7458f0b2e5896779cd;p=r2c2.git diff --git a/source/designer/manipulator.cpp b/source/designer/manipulator.cpp index e690c1d..dfcdd2c 100644 --- a/source/designer/manipulator.cpp +++ b/source/designer/manipulator.cpp @@ -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 new_tracks; for(vector::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)