diff options
author | Florian Jung <flo@windfisch.org> | 2013-09-02 16:37:12 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2013-09-02 16:37:12 +0200 |
commit | 66995bf5b29125666884f5fa9f9dddd46574abc9 (patch) | |
tree | deab106de92ddbcfc79f1f3108436fc309c021a3 /muse2/muse/arranger/pcanvas.cpp | |
parent | 31ffcde6e49564575f4452ee32640b69d0177ada (diff) |
MovePartToTrack
Diffstat (limited to 'muse2/muse/arranger/pcanvas.cpp')
-rw-r--r-- | muse2/muse/arranger/pcanvas.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp index 57645a97..8cd5957c 100644 --- a/muse2/muse/arranger/pcanvas.cpp +++ b/muse2/muse/arranger/pcanvas.cpp @@ -376,6 +376,9 @@ bool PartCanvas::moveItem(MusECore::Undo& operations, CItem* item, const QPoint& if(t == MOVE_MOVE) { + if (dtrack!=track) + operations.push_back(MusECore::UndoOp(MusECore::UndoOp::MovePartToTrack,spart,dtrack,track)); + operations.push_back(MusECore::UndoOp(MusECore::UndoOp::ModifyPartTick,spart,spart->tick(),dtick)); new_partend=(spart->lenTick() + dtick); @@ -392,11 +395,11 @@ bool PartCanvas::moveItem(MusECore::Undo& operations, CItem* item, const QPoint& dpart = spart->duplicate(); dpart->setTick(dtick); + dpart->setTrack(dtrack); operations.push_back(MusECore::UndoOp(MusECore::UndoOp::AddPart,dpart)); new_partend=(dpart->lenTick() + dpart->tick()); - } if (MusEGlobal::song->len() < new_partend) // FIXME this is buggy anyway. |