diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-09 06:39:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-09 06:39:18 +0000 |
commit | b007f7fe621e8390b41df5a725fbb697d3d69fb9 (patch) | |
tree | eeb833c1241f80eca1f3242cf85c5e5eeef369af /libs/ardour/session_state.cc | |
parent | beedf463fae114507e596c2e822abadea578e249 (diff) |
fix up some errors with fade in/out commands; make commit_reversible_command() do nothing if the transaction contains no commands; fix up undo with fade in/out objects
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2854 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index c32418a752..bcdae0c269 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2305,6 +2305,10 @@ Session::commit_reversible_command (Command *cmd) current_trans->add_command (cmd); } + if (current_trans->empty()) { + return; + } + gettimeofday (&now, 0); current_trans->set_timestamp (now); |