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.
This commit is contained in:
Thomas Goyne 2012-02-10 00:04:34 +00:00
parent 47cf5c8629
commit 30e1679a78

View file

@ -44,6 +44,7 @@
#include "ass_time.h" #include "ass_time.h"
#include "audio_renderer.h" #include "audio_renderer.h"
#include "audio_timing.h" #include "audio_timing.h"
#include "command/command.h"
#include "include/aegisub/context.h" #include "include/aegisub/context.h"
#include "main.h" #include "main.h"
#include "pen.h" #include "pen.h"
@ -515,10 +516,7 @@ void AudioTimingControllerDialogue::DoCommit(bool user_triggered)
{ {
int new_end_ms = *active_line.GetRightMarker(); int new_end_ms = *active_line.GetRightMarker();
/// @todo Old audio display created a new line if there was no next, cmd::call("grid/line/next/create", context);
/// like the edit box, so maybe add a way to do that which both
/// this and the edit box can use
Next();
if (*active_line.GetRightMarker() == 0) { if (*active_line.GetRightMarker() == 0) {
const int default_duration = OPT_GET("Timing/Default Duration")->GetInt(); const int default_duration = OPT_GET("Timing/Default Duration")->GetInt();