]> git.lyx.org Git - features.git/commitdiff
Fix this bug:
authorAbdelrazak Younes <younes@lyx.org>
Thu, 25 Jan 2007 13:10:27 +0000 (13:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 25 Jan 2007 13:10:27 +0000 (13:10 +0000)
1) View->Postscript
2) Export->LaTeX (plain)

1) will generate an error. 2) succeeeds (as it should), but the old error list is displayed again.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16850 a592a061-630c-0410-9148-cb99ea01b6c8

src/exporter.C

index decde47a4f2523de469ff3ebfb5b841c64395973..51184170eb2fc773dc9af594f7f37c58aed29a4b 100644 (file)
@@ -225,7 +225,8 @@ bool Exporter::Export(Buffer * buffer, string const & format,
                tmp_result_file, FileName(buffer->fileName()), backend_format, format,
                buffer->errorList(error_type));
        // Emit the signal to show the error list.
-       buffer->errors(error_type);
+       if (format != backend_format)
+               buffer->errors(error_type);
        if (!success)
                return false;