Fix bad redraw when dragging content views.
authorCarl Hetherington <cth@carlh.net>
Sun, 12 Aug 2018 21:28:37 +0000 (22:28 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 12 Aug 2018 21:28:37 +0000 (22:28 +0100)
src/wx/timeline.cc

index dc0234376cfedb641e35326fba64e074e18cb034..a8c1578336d1d8224718fc8bc69466da8b262bf3 100644 (file)
@@ -754,7 +754,7 @@ Timeline::set_position_from_event (wxMouseEvent& ev)
 void
 Timeline::force_redraw (dcpomatic::Rect<int> const & r)
 {
-       RefreshRect (wxRect (r.x, r.y, r.width, r.height), false);
+       _main_canvas->RefreshRect (wxRect (r.x, r.y, r.width, r.height), false);
 }
 
 shared_ptr<const Film>