mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Fix crash if new tempo is set to start at bar #0 / Follow-up for non movable tempos
This commit is contained in:
parent
444ec162ae
commit
d2e966aac4
1 changed files with 7 additions and 7 deletions
|
|
@ -130,7 +130,6 @@ TempoDialog::init (const Timecode::BBT_Time& when, double bpm, double note_type,
|
||||||
row = 1;
|
row = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (movable) {
|
|
||||||
char buf[64];
|
char buf[64];
|
||||||
|
|
||||||
snprintf (buf, sizeof (buf), "%" PRIu32, when.bars);
|
snprintf (buf, sizeof (buf), "%" PRIu32, when.bars);
|
||||||
|
|
@ -138,6 +137,7 @@ TempoDialog::init (const Timecode::BBT_Time& when, double bpm, double note_type,
|
||||||
snprintf (buf, sizeof (buf), "%" PRIu32, when.beats);
|
snprintf (buf, sizeof (buf), "%" PRIu32, when.beats);
|
||||||
when_beat_entry.set_text (buf);
|
when_beat_entry.set_text (buf);
|
||||||
|
|
||||||
|
if (movable) {
|
||||||
when_bar_entry.set_width_chars(4);
|
when_bar_entry.set_width_chars(4);
|
||||||
when_beat_entry.set_width_chars (4);
|
when_beat_entry.set_width_chars (4);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue