* LyX.cpp:

- correct load order of files to open on startup (#6848)
	  Patch by Punyashloka Biswal.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35184 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-08-23 06:46:04 +00:00
parent e52ee7c9ca
commit c27a449594
2 changed files with 4 additions and 1 deletions

View File

@ -436,7 +436,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) {

View File

@ -113,6 +113,9 @@ What's new
- Retain the first non-empty label when mutating eqnarray-like environments
to a display equation (bug 6793).
- Load files in correct order when passed as arguments via the command
line (bug 6848).
* DOCUMENTATION AND LOCALIZATION