mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Formatting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33132 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8fef2fd723
commit
bb044b16c9
@ -3273,13 +3273,16 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir,
|
||||
runparams.exportdata->externalFiles(format);
|
||||
string const dest = onlyPath(result_file);
|
||||
CopyStatus status = SUCCESS;
|
||||
for (vector<ExportedFile>::const_iterator it = files.begin();
|
||||
it != files.end() && status != CANCEL; ++it) {
|
||||
|
||||
vector<ExportedFile>::const_iterator it = files.begin();
|
||||
vector<ExportedFile>::const_iterator const en = files.end();
|
||||
for (; it != en && status != CANCEL; ++it) {
|
||||
string const fmt = formats.getFormatFromFile(it->sourceName);
|
||||
status = copyFile(fmt, it->sourceName,
|
||||
makeAbsPath(it->exportName, dest),
|
||||
it->exportName, status == FORCE);
|
||||
}
|
||||
|
||||
if (status == CANCEL) {
|
||||
message(_("Document export cancelled."));
|
||||
} else if (tmp_result_file.exists()) {
|
||||
|
Loading…
Reference in New Issue
Block a user