mirror of https://github.com/odrling/Aegisub
Fix compilation with wx 2.9.4 with 2.8 compatibility enabled. Closes #1504.
Originally committed to SVN as r6952.
This commit is contained in:
parent
e2e304f2cb
commit
b86a1bfb2d
|
@ -104,7 +104,13 @@ int AegisubLocale::PickLanguage() {
|
|||
if (locale)
|
||||
style |= wxCANCEL;
|
||||
|
||||
wxSingleChoiceDialog dialog(NULL, "Please choose a language:", "Language", langNames, 0, style);
|
||||
wxSingleChoiceDialog dialog(NULL, "Please choose a language:", "Language", langNames,
|
||||
#if wxCHECK_VERSION(2, 9, 4)
|
||||
(void **)0,
|
||||
#else
|
||||
0,
|
||||
#endif
|
||||
style);
|
||||
if (dialog.ShowModal() == wxID_OK) {
|
||||
int picked = dialog.GetSelection();
|
||||
if (locale && langs[picked] == locale->GetLanguage())
|
||||
|
|
Loading…
Reference in New Issue