13
0

Do not bother to render waveforms < 2px high

Those are blank to begin with, nothing is drawn, yet they'd still be
cached.

This may happen during an initial exposure (see 1a49d7d42b),
or when deleting regions.
This commit is contained in:
Robin Gareus 2020-12-22 05:54:55 +01:00
parent 1a49d7d42b
commit 4b0f72e205
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1016,7 +1016,11 @@ WaveView::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) cons
Rect self;
if (!get_item_and_draw_rect_in_window_coords (area, self, draw)) {
assert(true);
assert(false);
return;
}
if (draw.height () < 2) {
return;
}