diff --git a/core/audio_display.cpp b/core/audio_display.cpp index bb00f6f42..0653210b6 100644 --- a/core/audio_display.cpp +++ b/core/audio_display.cpp @@ -1203,6 +1203,18 @@ void AudioDisplay::CommitChanges () { // If in SSA mode, select next line and "move timing forward" (unless the user was splitting karaoke) if (Options.AsBool(_T("Audio SSA Mode")) && Options.AsBool(_T("Audio SSA Next Line on Commit")) && !wasKaraSplitting) { + // Insert a line if it doesn't exist + int nrows = grid->GetRows(); + if (nrows == line_n + 1) { + AssDialogue *def = new AssDialogue; + def->Start = grid->GetDialogue(line_n)->End; + def->End = grid->GetDialogue(line_n)->End; + def->End.SetMS(def->End.GetMS()+5000); + def->Style = grid->GetDialogue(line_n)->Style; + grid->InsertLine(def,line_n,true); + } + + // Go to next dontReadTimes = true; Next(); dontReadTimes = false; @@ -2029,6 +2041,7 @@ void AudioDisplay::ChangeLine(int delta) { dialogue = NULL; grid->editBox->SetToLine(next); grid->SelectRow(next); + grid->MakeCellVisible(next,0,true); if (!dialogue) UpdateImage(true); else UpdateImage(false); line_n = next; diff --git a/core/changelog.txt b/core/changelog.txt index 0c4534c19..a08bfeda0 100644 --- a/core/changelog.txt +++ b/core/changelog.txt @@ -34,6 +34,8 @@ Please visit http://aegisub.net to download latest version - Style name collisions (when moving from storage, creating or renaming) will now prompt the user before performing the action. (AMZ) - Added global hotkey for Video Play (default Ctrl+P). (AMZ) - Added support to save and load keyframe list files. (AMZ) +- Switching to a new line in audio mode now centers the line on the grid. (AMZ) +- Commiting changes in audio to the last line will insert a new line after it. (AMZ) = 1.10 beta - 2006.08.07 ===========================