]> git.lyx.org Git - lyx.git/commitdiff
fix bug 1888
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 7 Dec 2005 14:09:31 +0000 (14:09 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 7 Dec 2005 14:09:31 +0000 (14:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10647 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/exporter.C

index 02e64525c4a123531c93dacbcdb6eec5a8a4089d..534104a6a83d5b4cc824f6494b92effd605a31e5 100644 (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.
index 5faefb7a5dc4057879897e796382eef1aa4ba0c2..9ac6ddd02af77129c2f9d162ea029ea95391b437 100644 (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)));
                }
        }