diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-10-18 22:02:12 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-10-18 22:02:12 +0000 |
commit | ed5e141b7188187687bbbcd0dea5b3b74834ddd7 (patch) | |
tree | 1ad34a18ef4179967e13208394dd78c68f4406e1 /gtk2_ardour/audio_clock.cc | |
parent | 471ca9b1f5323df6c5510fab4eb512e8735ef5d5 (diff) |
if a clock is in delta-edit, it should be set to show a duration. this matters in BBT mode, where "zero" is 0|0|0 in duration mode and 1|1|0 otherwise. there is still a bug with the mouse tracking in delta edit mode, but that is a separate issue
git-svn-id: svn://localhost/ardour2/branches/3.0@7905 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 3201583e11..a7f57c6820 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -2126,3 +2126,14 @@ AudioClock::on_style_changed (const Glib::RefPtr<Style>& old_style) set_size_requests (); } + +void +AudioClock::set_is_duration (bool yn) +{ + if (yn == is_duration) { + return; + } + + is_duration = yn; + set (last_when, true, 0, 's'); +} |