Originally committed to SVN as r75.

This commit is contained in:
Rodrigo Braz Monteiro 2006-02-19 05:10:57 +00:00
parent 675c2d0829
commit df6071d1e6
1 changed files with 4 additions and 3 deletions

View File

@ -1312,13 +1312,14 @@ void SubsEditBox::SetOverride (wxString tagname,wxString preValue,int forcePos)
// End
if (hasEnd && selend != selstart) {
// Prepare variables again
int origStart = selstart;
selstart = selend + shift;
insert = insert2;
blockn = BlockAtPos(selend);
SetText(line->Text);
blockn = BlockAtPos(selstart);
block = line->Blocks.at(blockn);
plain = AssDialogueBlock::GetAsPlain(block);
override = AssDialogueBlock::GetAsOverride(block);
int origStart = selstart;
selstart = selend + shift;
// Plain
if (plain) {