fix bug 1888

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10647 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-12-07 14:09:31 +00:00
parent a62fc51c2f
commit 7deb554511
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-12-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* exporter.C (Export): Don't try to copy a file if it does not exist
(bug 1888)
2005-12-02 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* text2.C (makeFontEntriesLayoutSpecific): remove.

View File

@ -219,7 +219,7 @@ bool Exporter::Export(Buffer * buffer, string const & format,
}
if (status == CANCEL) {
buffer->message(_("Document export cancelled."));
} else {
} else if (fs::exists(tmp_result_file)) {
// Finally copy the main file
status = copyFile(format, tmp_result_file,
result_file, result_file,
@ -228,6 +228,10 @@ bool Exporter::Export(Buffer * buffer, string const & format,
"to file `%2$s'"),
formats.prettyName(format),
MakeDisplayPath(result_file)));
} else {
// This must be a dummy converter like fax (bug 1888)
buffer->message(bformat(_("Document exported as %1$s "),
formats.prettyName(format)));
}
}