std::shared_ptr
[dcpomatic.git] / src / wx / audio_mapping_view.cc
index 14dc73321646018d08e12e8507dbc14fc85e9f0a..04a468416a75cc8ede8977621b14b1cd464e5c90 100644 (file)
@@ -47,7 +47,7 @@ using std::max;
 using std::vector;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
@@ -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;