]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.cpp
Workaround for #6865: smarter FontList::setMisspelled implementation
[lyx.git] / src / LyX.cpp
index 3a03eb31456f430970cbe9ed91cdc56d568168af..42f79297cc0c8cf64da29457574de830baae1f4d 100644 (file)
@@ -286,7 +286,7 @@ int LyX::exec(int & argc, char * argv[])
                init_package(os::utf8_argv(0), string(), string(),
                              top_build_dir_is_one_level_up);
        } catch (ExceptionMessage const & message) {}
-       Messages::init();
+       locale_init();
 
        // Here we need to parse the command line. At least
        // we need to parse for "-dbg" and "-help"
@@ -464,7 +464,7 @@ int LyX::init(int & argc, char * argv[])
                return EXIT_FAILURE;
 
        // Remaining arguments are assumed to be files to load.
-       for (int argi = argc - 1; argi >= 1; --argi)
+       for (int argi = 1; argi < argc; ++argi)
                pimpl_->files_to_load_.push_back(os::utf8_argv(argi));
 
        if (first_start) {