#6848 correct load order of files to open on startup - author of patch: Punyashloka Biswal

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35182 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-08-21 16:49:30 +00:00
parent 7238d40c99
commit 31dbbc43d9

View File

@ -464,7 +464,7 @@ int LyX::init(int & argc, char * argv[])
return EXIT_FAILURE; return EXIT_FAILURE;
// Remaining arguments are assumed to be files to load. // 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)); pimpl_->files_to_load_.push_back(os::utf8_argv(argi));
if (first_start) { if (first_start) {