Minimise duplicate calls to CairoWidget::set_dirty() in the editor summary.

- many regions may be changed by one operation.
This commit is contained in:
nick_m 2016-07-10 01:50:38 +10:00
parent a44c8b96ae
commit 23da9acf7e
1 changed files with 4 additions and 2 deletions

View File

@ -293,8 +293,10 @@ EditorSummary::render_region (RegionView* r, cairo_t* cr, double y) const
void
EditorSummary::set_background_dirty ()
{
_background_dirty = true;
set_dirty ();
if (!_background_dirty) {
_background_dirty = true;
set_dirty ();
}
}
/** Set the summary so that just the overlays (viewbox, playhead etc.) will be re-rendered */