Commit dfd43a87 authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix guides can be move to position < 0

parent 12a396a2
Pipeline #146115 passed with stage
in 7 minutes and 12 seconds
......@@ -1209,6 +1209,9 @@ void TimelineController::editGuide(int frame)
void TimelineController::moveGuide(int frame, int newFrame)
{
if (newFrame < 0) {
return;
}
auto guideModel = pCore->currentDoc()->getGuideModel();
GenTime pos(frame, pCore->getCurrentFps());
GenTime newPos(newFrame, pCore->getCurrentFps());
......@@ -1217,6 +1220,9 @@ void TimelineController::moveGuide(int frame, int newFrame)
void TimelineController::moveGuideWithoutUndo(int mid, int newFrame)
{
if (newFrame < 0) {
return;
}
auto guideModel = pCore->currentDoc()->getGuideModel();
GenTime newPos(newFrame, pCore->getCurrentFps());
guideModel->moveMarker(mid, newPos);
......
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