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 | |
| parent | 59f5ab7320ba4911452d56f0a4e1603165da93f4 (diff) | |
Speculative fix for error on forcing language to English (#103).
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/tools/dvdomatic.cc | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -3,6 +3,11 @@ * Make the audio plot expand in height when its window is enlarged. + * Label subtitle offset with "pixels" (#101). + + * Speculative fix for error on forcing language + to English (#103). + 2013-04-01 Carl Hetherington <cth@carlh.net> * Version 0.79 released. 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)) { |
