- 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)

Originally committed to SVN as r579.
This commit is contained in:
Rodrigo Braz Monteiro 2006-12-18 20:13:23 +00:00
parent 2f9a086a22
commit 76dbc901f9
2 changed files with 15 additions and 0 deletions

View file

@ -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;

View file

@ -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 ===========================