From 01f584baa4f168bc14b1f2d22fcb6e893de83b8b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 16 Sep 2010 19:41:21 +0000 Subject: [PATCH] Copy position and rotation when duplicating tracks --- source/designer/manipulator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/designer/manipulator.cpp b/source/designer/manipulator.cpp index dfcdd2c..029bbba 100644 --- a/source/designer/manipulator.cpp +++ b/source/designer/manipulator.cpp @@ -68,6 +68,8 @@ void Manipulator::duplicate() for(vector::iterator i=tracks.begin(); i!=tracks.end(); ++i) { Track *track = new Track(*designer.get_layout(), i->track->get_type()); + track->set_position(i->track->get_position()); + track->set_rotation(i->track->get_rotation()); new_tracks.push_back(track); } -- 2.45.2