mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user