Fix previous when content is not at time 0.
authorCarl Hetherington <cth@carlh.net>
Tue, 16 Feb 2016 12:20:55 +0000 (12:20 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 16 Feb 2016 12:20:55 +0000 (12:20 +0000)
src/wx/timeline_content_view.cc

index 001b4077a54787b35f9eb6d2afbb56ce618480fe..989be3fad8d0d07da5570c1329a84db9684e7e6b 100644 (file)
@@ -127,8 +127,8 @@ TimelineContentView::do_paint (wxGraphicsContext* gc)
        gc->SetPen (*wxThePenList->FindOrCreatePen (foreground_colour(), 1, wxPENSTYLE_DOT));
        BOOST_FOREACH (DCPTime i, cont->reel_split_points ()) {
                path = gc->CreatePath ();
-               path.MoveToPoint (time_x (i - position), y_pos (_track.get()) + 4);
-               path.AddLineToPoint (time_x (i - position), y_pos (_track.get() + 1) - 4);
+               path.MoveToPoint (time_x (i), y_pos (_track.get()) + 4);
+               path.AddLineToPoint (time_x (i), y_pos (_track.get() + 1) - 4);
                gc->StrokePath (path);
        }