Fix bug #7557 (TeX engine cannot be switched on Windows)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38739 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-05-13 12:31:19 +00:00
parent 249639fe9c
commit 6d7bfd663b

View File

@ -1612,8 +1612,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
if (tag != RC_LAST)
break;
case RC_TEX_EXPECTS_WINDOWS_PATHS:
if (ignore_system_lyxrc ||
windows_style_tex_paths != system_lyxrc.windows_style_tex_paths) {
// Don't write this setting to the preferences file,
// but allow temporary changes (bug 7557).
if (ignore_system_lyxrc) {
os << "\\tex_expects_windows_paths "
<< convert<string>(windows_style_tex_paths) << '\n';
}