diff options
author | Julien de Kozak <jdekozak@hotmail.com> | 2014-12-08 19:11:13 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-18 10:49:12 -0500 |
commit | d2e966aac458efca03972f1f76a938dd244d18dd (patch) | |
tree | e38790a85e993fe96ea301d4824c604d5c301e4c /gtk2_ardour/tempo_dialog.cc | |
parent | 444ec162ae03958abf460206cfcd93d37baf09bb (diff) |
Fix crash if new tempo is set to start at bar #0 / Follow-up for non movable tempos
Diffstat (limited to 'gtk2_ardour/tempo_dialog.cc')
-rw-r--r-- | gtk2_ardour/tempo_dialog.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/tempo_dialog.cc b/gtk2_ardour/tempo_dialog.cc index 24acfbb57f..95d086478a 100644 --- a/gtk2_ardour/tempo_dialog.cc +++ b/gtk2_ardour/tempo_dialog.cc @@ -130,14 +130,14 @@ TempoDialog::init (const Timecode::BBT_Time& when, double bpm, double note_type, row = 1; } - if (movable) { - char buf[64]; + char buf[64]; - snprintf (buf, sizeof (buf), "%" PRIu32, when.bars); - when_bar_entry.set_text (buf); - snprintf (buf, sizeof (buf), "%" PRIu32, when.beats); - when_beat_entry.set_text (buf); + snprintf (buf, sizeof (buf), "%" PRIu32, when.bars); + when_bar_entry.set_text (buf); + snprintf (buf, sizeof (buf), "%" PRIu32, when.beats); + when_beat_entry.set_text (buf); + if (movable) { when_bar_entry.set_width_chars(4); when_beat_entry.set_width_chars (4); |