]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.cpp
cmake: remove 2.8 warning
[lyx.git] / src / LyX.cpp
index 5ae488d8f847d10d4d950f2a3e97c23d858eabba..8321251751a7d22457f2555ac02c49546010926d 100644 (file)
@@ -292,10 +292,11 @@ int LyX::exec(int & argc, char * argv[])
        try {
                init_package(os::utf8_argv(0), string(), string(),
                        top_build_dir_is_one_level_up);
+               // we do not get to this point when init_package throws an exception
+               locale_init();
        } catch (ExceptionMessage const & message) {
                LYXERR(Debug::LOCALE, message.title_ + ", " + message.details_);
        }
-       locale_init();
 
        // Here we need to parse the command line. At least
        // we need to parse for "-dbg" and "-help"