From e516ab6e320aabc96661052a7e4de57ac8da6411 Mon Sep 17 00:00:00 2001 From: Ryan Lucia Date: Fri, 27 Apr 2018 11:19:37 -0400 Subject: [PATCH] Fix line order when splitting after current frame --- src/command/edit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command/edit.cpp b/src/command/edit.cpp index 3559d2606..333cdc6d5 100644 --- a/src/command/edit.cpp +++ b/src/command/edit.cpp @@ -672,7 +672,7 @@ static void duplicate_lines(agi::Context *c, int shift) { // after the selected block do { auto old_diag = &*start; - auto new_diag = new AssDialogue(*old_diag); + auto new_diag = new AssDialogue(*old_diag); c->ass->Events.insert(insert_pos, *new_diag); new_sel.insert(new_diag); @@ -697,8 +697,8 @@ static void duplicate_lines(agi::Context *c, int shift) { new_diag->Start = c->videoController->TimeAtFrame(cur_frame, agi::vfr::START); } else { - old_diag->Start = c->videoController->TimeAtFrame(cur_frame + 1, agi::vfr::START); - new_diag->End = c->videoController->TimeAtFrame(cur_frame, agi::vfr::END); + old_diag->End = c->videoController->TimeAtFrame(cur_frame, agi::vfr::END); + new_diag->Start = c->videoController->TimeAtFrame(cur_frame + 1, agi::vfr::START); } /// @todo also split \t and \move?