summaryrefslogtreecommitdiff
path: root/muse2/muse/undo.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-22 13:26:40 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-22 13:26:40 +0000
commit8fbfa07b464210054a177b1e92f47b5f2744d1cc (patch)
treefb8c2d49db90f51744251380a7b8d77689341282 /muse2/muse/undo.cpp
parent14f8a08279d9266467d457707166b439fd080fa2 (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.cpp6
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_;