From 44528f4fd09a5a6681207ff0516a365f2cb8f20d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 7 Jan 2021 20:46:44 +0100 Subject: [PATCH] Fix editor summary exposure rectangle Rectangle uses position and width, not coordinate pairs. --- gtk2_ardour/editor_summary.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index 24af3d2b1e..d472d7eca0 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -931,7 +931,7 @@ EditorSummary::playhead_position_changed (samplepos_t p) if (_session && o != n) { int a = max(2, min (o, n)); int b = max (o, n); - set_overlays_dirty_rect (a - 2, 0, b + 2, get_height ()); + set_overlays_dirty_rect (a - 2, 0, b - a + 4, get_height ()); } }