forked from mia/Aegisub
Fix #532 - other lines become invisible after using visual TS tools, until video reload. (Regression introduced in r1466.)
Originally committed to SVN as r1526.
This commit is contained in:
parent
154e2840fb
commit
fcb133fe3e
1 changed files with 5 additions and 2 deletions
|
@ -261,8 +261,11 @@ void VisualTool::Commit(bool full) {
|
|||
SubtitlesGrid *grid = VideoContext::Get()->grid;
|
||||
|
||||
// See if anything actually changed
|
||||
AssDialogue *diag = grid->GetDialogue(grid->editBox->linen);
|
||||
if (diag && grid->editBox->TextEdit->GetText() == diag->Text) return;
|
||||
// Fix by jfs: Only if not doing a full commit. Not sure why, but this avoids bug #532
|
||||
if (!full) {
|
||||
AssDialogue *diag = grid->GetDialogue(grid->editBox->linen);
|
||||
if (diag && grid->editBox->TextEdit->GetText() == diag->Text) return;
|
||||
}
|
||||
|
||||
// Commit changes
|
||||
grid->editBox->CommitText();
|
||||
|
|
Loading…
Reference in a new issue