From c1de03210d6fbd77240e38031c6ef5e70816b72a Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 23 Oct 2011 17:00:32 +0000 Subject: [PATCH] Set the style dropdown's value after undo Originally committed to SVN as r5763. --- aegisub/src/subs_edit_box.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/src/subs_edit_box.cpp b/aegisub/src/subs_edit_box.cpp index 5cd05ea66..d5de9e976 100644 --- a/aegisub/src/subs_edit_box.cpp +++ b/aegisub/src/subs_edit_box.cpp @@ -341,6 +341,7 @@ void SubsEditBox::Update(int type) { if (type == AssFile::COMMIT_NEW || type & AssFile::COMMIT_STYLES) { StyleBox->Clear(); StyleBox->Append(c->ass->GetStyles()); + StyleBox->Select(StyleBox->FindString(line->Style)); } if (type == AssFile::COMMIT_NEW) {