From: Enrico Forestieri Date: Sun, 15 Mar 2015 23:34:35 +0000 (+0100) Subject: Fix bug #9453 X-Git-Tag: 2.2.0alpha1~1168 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0a5e1f20fc807535dd83ddc52d65a22548e478e8;p=lyx.git Fix bug #9453 This was due to a problem with the QProcess parser. See #9453 for details. --- diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index 5704aa1e11..229dd2e1da 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -733,15 +733,10 @@ string latexEnvCmdPrefix(string const & path) return "env TEXINPUTS=\"." + sep + texinputs_prefix + sep + texinputs + "\" "; else -#ifndef USE_QPROCESS + // NOTE: *any* space in the last string matters! (see bug 9453) return "cmd /d /c set \"TEXINPUTS=." + sep + texinputs_prefix - + sep + texinputs + "\"&"; -#else - return "cmd /d /c set \"\"\"TEXINPUTS=." - + sep + texinputs_prefix - + sep + texinputs + "\"\"\"&"; -#endif + + sep + texinputs + " \" & "; }