]> git.sesse.net Git - kdenlive/commitdiff
Fix Go To Marker feature: http://kdenlive.org/mantis/view.php?id=2866
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 9 Dec 2012 21:20:04 +0000 (22:20 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 9 Dec 2012 21:20:04 +0000 (22:20 +0100)
src/customtrackview.cpp

index cbc29dff8eb821718903eb126610d22281cd186b..29d3999ea4325f8ff82ed2db1866f27bdc174770 100644 (file)
@@ -1521,7 +1521,7 @@ void CustomTrackView::displayContextMenu(QPoint pos, AbstractClipItem *clip, Abs
             //build go to marker menu
             if (item->baseClip()) {
                 QList <CommentedTime> markers = item->baseClip()->commentedSnapMarkers();
-                int offset = item->startPos().frames(m_document->fps());
+                int offset = (item->startPos()- item->cropStart()).frames(m_document->fps());
                 if (!markers.isEmpty()) {
                     for (int i = 0; i < markers.count(); i++) {
                         int pos = (int) markers.at(i).time().frames(m_document->timecode().fps());