mirror of https://github.com/odrling/Aegisub
Work around bad codegen from VC++2015 update 2
This commit is contained in:
parent
43f5af556d
commit
8823476275
|
@ -317,8 +317,10 @@ void SubsEditBox::OnCommit(int type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == AssFile::COMMIT_NEW) {
|
if (type == AssFile::COMMIT_NEW) {
|
||||||
PopulateList(effect_box, &AssDialogue::Effect);
|
// Without this pointless variable vc++ 2015 passes null to PopulateList
|
||||||
PopulateList(actor_box, &AssDialogue::Actor);
|
auto vs14_u2_workaround = &AssDialogue::Effect;
|
||||||
|
PopulateList(effect_box, vs14_u2_workaround);
|
||||||
|
PopulateList(actor_box, vs14_u2_workaround = &AssDialogue::Actor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (type & AssFile::COMMIT_STYLES)
|
else if (type & AssFile::COMMIT_STYLES)
|
||||||
|
|
Loading…
Reference in New Issue