13
0

Waveform: work around empty peakfile edge-case

(gdb) p peak.max
$5 = -1
(gdb) p peak.min
$6 = 1
This commit is contained in:
Robin Gareus 2021-11-14 23:11:04 +01:00
parent 8e89325bee
commit d9b9f4f588
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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));
}