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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user