From 30e1679a78b9fb7b74e6ad06e4daa61573660a4a Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 10 Feb 2012 00:04:34 +0000 Subject: [PATCH] Create a new line when committing the last line via the audio display when Next Line on Commit is enabled, as in 2.1.x Originally committed to SVN as r6462. --- aegisub/src/audio_timing_dialogue.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aegisub/src/audio_timing_dialogue.cpp b/aegisub/src/audio_timing_dialogue.cpp index 9946cbfc9..c747c79c6 100644 --- a/aegisub/src/audio_timing_dialogue.cpp +++ b/aegisub/src/audio_timing_dialogue.cpp @@ -44,6 +44,7 @@ #include "ass_time.h" #include "audio_renderer.h" #include "audio_timing.h" +#include "command/command.h" #include "include/aegisub/context.h" #include "main.h" #include "pen.h" @@ -515,10 +516,7 @@ void AudioTimingControllerDialogue::DoCommit(bool user_triggered) { int new_end_ms = *active_line.GetRightMarker(); - /// @todo Old audio display created a new line if there was no next, - /// like the edit box, so maybe add a way to do that which both - /// this and the edit box can use - Next(); + cmd::call("grid/line/next/create", context); if (*active_line.GetRightMarker() == 0) { const int default_duration = OPT_GET("Timing/Default Duration")->GetInt();