Set the style dropdown's value after undo

Originally committed to SVN as r5763.
This commit is contained in:
Thomas Goyne 2011-10-23 17:00:32 +00:00
parent f29e889776
commit c1de03210d
1 changed files with 1 additions and 0 deletions

View File

@ -341,6 +341,7 @@ void SubsEditBox::Update(int type) {
if (type == AssFile::COMMIT_NEW || type & AssFile::COMMIT_STYLES) { if (type == AssFile::COMMIT_NEW || type & AssFile::COMMIT_STYLES) {
StyleBox->Clear(); StyleBox->Clear();
StyleBox->Append(c->ass->GetStyles()); StyleBox->Append(c->ass->GetStyles());
StyleBox->Select(StyleBox->FindString(line->Style));
} }
if (type == AssFile::COMMIT_NEW) { if (type == AssFile::COMMIT_NEW) {