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:
Niels Martin Hansen 2007-08-22 13:02:44 +00:00
parent 154e2840fb
commit fcb133fe3e

View file

@ -261,8 +261,11 @@ void VisualTool::Commit(bool full) {
SubtitlesGrid *grid = VideoContext::Get()->grid; SubtitlesGrid *grid = VideoContext::Get()->grid;
// See if anything actually changed // See if anything actually changed
AssDialogue *diag = grid->GetDialogue(grid->editBox->linen); // Fix by jfs: Only if not doing a full commit. Not sure why, but this avoids bug #532
if (diag && grid->editBox->TextEdit->GetText() == diag->Text) return; if (!full) {
AssDialogue *diag = grid->GetDialogue(grid->editBox->linen);
if (diag && grid->editBox->TextEdit->GetText() == diag->Text) return;
}
// Commit changes // Commit changes
grid->editBox->CommitText(); grid->editBox->CommitText();