mirror of https://github.com/odrling/Aegisub
Try to preserve the value of the styles dropdown across undo/redo
Originally committed to SVN as r6139.
This commit is contained in:
parent
95ad8c1fba
commit
477dd8a2f6
|
@ -339,8 +339,10 @@ void SubsEditBox::Update(int type) {
|
||||||
wxEventBlocker blocker(this);
|
wxEventBlocker blocker(this);
|
||||||
|
|
||||||
if (type == AssFile::COMMIT_NEW || type & AssFile::COMMIT_STYLES) {
|
if (type == AssFile::COMMIT_NEW || type & AssFile::COMMIT_STYLES) {
|
||||||
|
wxString style = StyleBox->GetValue();
|
||||||
StyleBox->Clear();
|
StyleBox->Clear();
|
||||||
StyleBox->Append(c->ass->GetStyles());
|
StyleBox->Append(c->ass->GetStyles());
|
||||||
|
StyleBox->Select(StyleBox->FindString(style));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == AssFile::COMMIT_NEW) {
|
if (type == AssFile::COMMIT_NEW) {
|
||||||
|
|
Loading…
Reference in New Issue