]> git.lyx.org Git - features.git/commit
Use the right latex backend when a converter needs aux files.
authorEnrico Forestieri <forenr@lyx.org>
Wed, 11 Apr 2012 16:19:11 +0000 (18:19 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 11 Apr 2012 16:38:32 +0000 (18:38 +0200)
commit3285ce1d5cb9ba79af700d004401115269e97ada
tree67137a373f7a3b8c1d9fa7dc202bcd15bb03b0e9
parent829e1fbc4d4026f4a45e3d8c4cacf69e7c792f9b
Use the right latex backend when a converter needs aux files.

If a converter specifies the needaux flag, latex (or xelatex) is
always run to produce the needed auxiliary files. This is wrong
because there are documents that can only be compiled with a specific
backend and thus the conversion may fail. On the other hand, even if
the document specifies the backend to be used, LyX ignores this info.

This commit rectifies this behavior by letting LyX run the same flavor
of the latex backend that shall be used for previewing the document
also for producing the auxiliary files.
src/Buffer.cpp
src/Converter.cpp
src/Converter.h