Commit 1e365f42 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash clicking razor on timeline ruler

parent 7502d82e
...@@ -883,7 +883,7 @@ Rectangle { ...@@ -883,7 +883,7 @@ Rectangle {
var y = mouse.y - ruler.height + scrollView.contentY - subtitleTrack.height var y = mouse.y - ruler.height + scrollView.contentY - subtitleTrack.height
if (y >= 0) { if (y >= 0) {
timeline.cutClipUnderCursor((scrollView.contentX + mouse.x) / timeline.scaleFactor, tracksRepeater.itemAt(Logic.getTrackIndexFromPos(y)).trackInternalId) timeline.cutClipUnderCursor((scrollView.contentX + mouse.x) / timeline.scaleFactor, tracksRepeater.itemAt(Logic.getTrackIndexFromPos(y)).trackInternalId)
} else { } else if (subtitleTrack.height > 0) {
timeline.cutClipUnderCursor((scrollView.contentX + mouse.x) / timeline.scaleFactor, -2) timeline.cutClipUnderCursor((scrollView.contentX + mouse.x) / timeline.scaleFactor, -2)
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment