projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f21111d
)
Fix crash when removing time from track with automation
author
Tim Mayberry
<mojofunk@gmail.com>
Fri, 10 Mar 2017 12:59:58 +0000
(22:59 +1000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Fri, 10 Mar 2017 12:59:58 +0000
(22:59 +1000)
Resolves : #7287
gtk2_ardour/editor_ops.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_ops.cc
b/gtk2_ardour/editor_ops.cc
index 2b8a5fd018d0ddeac39d5abc9fd0cee4098e1ca1..4eef1058af6a0f693e45f2d0a320231f09f97558 100644
(file)
--- a/
gtk2_ardour/editor_ops.cc
+++ b/
gtk2_ardour/editor_ops.cc
@@
-7656,16
+7656,17
@@
Editor::remove_time (framepos_t pos, framecnt_t frames, InsertTimeOption opt,
XMLNode &before = pl->get_state();
XMLNode &before = pl->get_state();
+ if (!in_command) {
+ begin_reversible_command (_("remove time"));
+ in_command = true;
+ }
+
std::list<AudioRange> rl;
AudioRange ar(pos, pos+frames, 0);
rl.push_back(ar);
pl->cut (rl);
pl->shift (pos, -frames, true, ignore_music_glue);
std::list<AudioRange> rl;
AudioRange ar(pos, pos+frames, 0);
rl.push_back(ar);
pl->cut (rl);
pl->shift (pos, -frames, true, ignore_music_glue);
- if (!in_command) {
- begin_reversible_command (_("remove time"));
- in_command = true;
- }
XMLNode &after = pl->get_state();
_session->add_command (new MementoCommand<Playlist> (*pl, &before, &after));
XMLNode &after = pl->get_state();
_session->add_command (new MementoCommand<Playlist> (*pl, &before, &after));