diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-07 14:28:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-07 14:28:49 +0100 |
| commit | 0b245da3bcc5465f29cb709b459ae8b170c6d205 (patch) | |
| tree | 868ec52b4da9369916ae118ce9cc8f596e51f924 /src | |
| parent | 59f5ab7320ba4911452d56f0a4e1603165da93f4 (diff) | |
Speculative fix for error on forcing language to English (#103).
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dvdomatic.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index 87c079bee..b408ef505 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -452,7 +452,9 @@ setup_i18n () if (Config::instance()->language()) { wxLanguageInfo const * li = wxLocale::FindLanguageInfo (std_to_wx (Config::instance()->language().get())); - language = li->Language; + if (li) { + language = li->Language; + } } if (wxLocale::IsAvailable (language)) { |
