From d9b9f4f588072fc97abb78db82b3e1a581643d87 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 14 Nov 2021 23:11:04 +0100 Subject: [PATCH] Waveform: work around empty peakfile edge-case (gdb) p peak.max $5 = -1 (gdb) p peak.min $6 = 1 --- libs/waveview/wave_view.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/waveview/wave_view.cc b/libs/waveview/wave_view.cc index e49f74f84c..0bfceab2c5 100644 --- a/libs/waveview/wave_view.cc +++ b/libs/waveview/wave_view.cc @@ -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)); }