diff options
author | Florian Jung <flo@windfisch.org> | 2011-05-22 13:26:40 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-05-22 13:26:40 +0000 |
commit | 8fbfa07b464210054a177b1e92f47b5f2744d1cc (patch) | |
tree | fb8c2d49db90f51744251380a7b8d77689341282 /muse2/muse/undo.cpp | |
parent | 14f8a08279d9266467d457707166b439fd080fa2 (diff) |
moving events in canvases and reordering the drum map have
been speeded up by using operation groups.
HOWEVER: there might be bugs, in fact, i may even have messed
up the whole thing!
use with CAUTION and TEST intensively!
Diffstat (limited to 'muse2/muse/undo.cpp')
-rw-r--r-- | muse2/muse/undo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/muse2/muse/undo.cpp b/muse2/muse/undo.cpp index ea9ea8d6..2b90e26f 100644 --- a/muse2/muse/undo.cpp +++ b/muse2/muse/undo.cpp @@ -203,7 +203,7 @@ void Song::endUndo(int flags) void Song::applyOperationGroup(Undo& group) { - //this is a HACK! but it works :) + //this is a HACK! but it works :) (added by flo93) redoList->push_back(group); redo(); } @@ -698,6 +698,10 @@ void Song::doRedo2() } } +UndoOp::UndoOp() +{ +} + UndoOp::UndoOp(UndoType type_, int a_, int b_, int c_) { type = type_; |