Fix overlapping group labels in the audio matrix (#1882).
[dcpomatic.git] / src / wx / audio_mapping_view.cc
index 14dc73321646018d08e12e8507dbc14fc85e9f0a..01cd7738b0922215f2fff415cf2060587c514341 100644 (file)
@@ -252,6 +252,7 @@ AudioMappingView::paint_row_labels (wxDC& dc)
                }
 
                {
+                       wxDCClipper clip (dc, wxRect(GRID_SPACING, y, GRID_SPACING, height));
                        int yp = y;
                        if ((yp - 2 * GRID_SPACING) < dc.GetLogicalOrigin().y) {
                                yp += dc.GetLogicalOrigin().y;