From d7db3f757fde92126ef9886370ce604992b7e974 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Aug 2007 20:50:09 +0000 Subject: Better MidiModel command framework, ready to go for all your canvas editing needs. Rewrote MidiEvent to be a well-behaved self-contained object that optionally owns it's buffer, has proper copying semantics, etc. Fixed crazy bugs triggered by adding lots of events with varying times to a region. Speed up initial session display significantly (don't redraw each MIDI region tons of times, though still happens more than once and can use fixing...). git-svn-id: svn://localhost/ardour2/trunk@2213 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/undo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/pbd/undo.cc') diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc index 5c7178b0d6..6db85e6ab3 100644 --- a/libs/pbd/undo.cc +++ b/libs/pbd/undo.cc @@ -32,14 +32,14 @@ using namespace std; using namespace sigc; UndoTransaction::UndoTransaction () + : _clearing(false) { - _clearing = false; } UndoTransaction::UndoTransaction (const UndoTransaction& rhs) + : Command(rhs._name) + , _clearing(false) { - _name = rhs._name; - _clearing = false; clear (); actions.insert(actions.end(),rhs.actions.begin(),rhs.actions.end()); } -- cgit v1.2.3