mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Fix potential crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25604 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9e0a88423a
commit
10c46e5db8
@ -237,6 +237,9 @@ void setRcGuiLanguage()
|
||||
if (lyxrc.gui_language == "auto")
|
||||
return;
|
||||
Language const * language = languages.getLanguage(lyxrc.gui_language);
|
||||
if (!language)
|
||||
// Not possible at this point.
|
||||
return;
|
||||
LYXERR(Debug::LOCALE, "Setting LANGUAGE to " << language->code());
|
||||
if (!setEnv("LANGUAGE", language->code()))
|
||||
LYXERR(Debug::LOCALE, "\t... failed!");
|
||||
|
Loading…
Reference in New Issue
Block a user