mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
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:
parent
01854608fd
commit
392381882b
@ -447,10 +447,17 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write it to a file (so far the complete file)
|
// write it to a file (so far the complete file)
|
||||||
string const exportfile = changeExtension(incfile, ".tex");
|
string exportfile;
|
||||||
string const mangled =
|
string mangled;
|
||||||
DocFileName(changeExtension(included_file.absFilename(),".tex")).
|
if (type(params()) == LISTINGS) {
|
||||||
|
exportfile = incfile;
|
||||||
|
mangled = DocFileName(included_file).mangledFilename();
|
||||||
|
} else {
|
||||||
|
exportfile = changeExtension(incfile, ".tex");
|
||||||
|
mangled = DocFileName(changeExtension(included_file.absFilename(), ".tex")).
|
||||||
mangledFilename();
|
mangledFilename();
|
||||||
|
}
|
||||||
|
|
||||||
FileName const writefile(makeAbsPath(mangled, masterBuffer->temppath()));
|
FileName const writefile(makeAbsPath(mangled, masterBuffer->temppath()));
|
||||||
|
|
||||||
if (!runparams.nice)
|
if (!runparams.nice)
|
||||||
|
Loading…
Reference in New Issue
Block a user