Waveform: work around empty peakfile edge-case
(gdb) p peak.max $5 = -1 (gdb) p peak.min $6 = 1
This commit is contained in:
parent
8e89325bee
commit
d9b9f4f588
@ -391,7 +391,6 @@ WaveView::compute_tips (ARDOUR::PeakData const& peak, WaveView::LineTips& tips,
|
||||
tips.bot = rint (pmin);
|
||||
}
|
||||
|
||||
assert (tips.top <= tips.bot);
|
||||
if (tips.top > tips.bot) {
|
||||
tips.top = tips.bot = rint (0.5 * (tips.top + tips.bot));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user