mirror of https://github.com/odrling/Aegisub
Fix a bug that would cause a crash under certain conditions when trying to change the properties of a recently deleted line. Patch by Plorkyeran, closes #815
Originally committed to SVN as r2858.
This commit is contained in:
parent
32eb3a8a62
commit
76cec3ec29
|
@ -1047,8 +1047,10 @@ void SubtitlesGrid::DeleteLines(wxArrayInt target) {
|
|||
ass->FlagAsModified(_("delete"));
|
||||
CommitChanges();
|
||||
|
||||
// Update editbox
|
||||
editBox->SetToLine(MID(0,editBox->linen,GetRows()-1));
|
||||
// Update selected line
|
||||
int newSelected = MID(0, editBox->linen,GetRows() - 1);
|
||||
editBox->SetToLine(newSelected);
|
||||
SelectRow(newSelected);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue