diff options
author | Hans Fugal <hans@fugal.net> | 2006-07-27 00:19:27 +0000 |
---|---|---|
committer | Hans Fugal <hans@fugal.net> | 2006-07-27 00:19:27 +0000 |
commit | 6aeb09062f4b4ff8e684f6f5ba80d47cb69665d5 (patch) | |
tree | b0126175dcf9ff79f680069e921f8dd842b32b01 /gtk2_ardour/region_gain_line.cc | |
parent | 656d56b12d0b86f9140956badd9c9e11d791549b (diff) |
r206@gandalf: fugalh | 2006-07-26 18:19:07 -0600
A couple more Command conversions. Now all that's left are the half dozen
or so global mementos.
git-svn-id: svn://localhost/ardour2/branches/undo@698 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_gain_line.cc')
-rw-r--r-- | gtk2_ardour/region_gain_line.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/region_gain_line.cc b/gtk2_ardour/region_gain_line.cc index 526e8844ef..2faa63151b 100644 --- a/gtk2_ardour/region_gain_line.cc +++ b/gtk2_ardour/region_gain_line.cc @@ -81,8 +81,8 @@ void AudioRegionGainLine::end_drag (ControlPoint* cp) { if (!rv.region.envelope_active()) { - trackview.session().add_redo( bind( mem_fun(rv.region, &AudioRegion::set_envelope_active), true) ); rv.region.set_envelope_active(true); + trackview.session().add_command(MementoRedoCommand<AudioRegion>(rv.region, rv.region.get_state())); } AutomationLine::end_drag(cp); } |