r28101 for trunk, courtesy of Bo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28104 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-01-11 21:38:04 +00:00
parent 01854608fd
commit 392381882b

View File

@ -447,10 +447,17 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const
}
// write it to a file (so far the complete file)
string const exportfile = changeExtension(incfile, ".tex");
string const mangled =
DocFileName(changeExtension(included_file.absFilename(),".tex")).
string exportfile;
string mangled;
if (type(params()) == LISTINGS) {
exportfile = incfile;
mangled = DocFileName(included_file).mangledFilename();
} else {
exportfile = changeExtension(incfile, ".tex");
mangled = DocFileName(changeExtension(included_file.absFilename(), ".tex")).
mangledFilename();
}
FileName const writefile(makeAbsPath(mangled, masterBuffer->temppath()));
if (!runparams.nice)