Georg Baum wrote:
Abdelrazak Younes wrote:

--- lyx-devel/trunk/src/exporter.C (original) +++
lyx-devel/trunk/src/exporter.C Thu Jan 25 14:10:27 2007 @@ -225,7 +225,8
@@
 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);

Are you sure that this fix will always work? Would it not be better to
delete the old error list on export, because it will not be current
anymore?

No, the old error list is still current as it was created upon latex compilation. The latex export does not change that fact. In the case where format == backend_format, this is not really a conversion but a file copying as the first lines in bool Converters::convert() shows:

        if (from_format == to_format)
                return move(from_format, from_file, to_file, false);


You can see from my questions that I have absolutely no clue how the error
stuff works, so if this is a stupid question just ignore it.

A question is never stupid ;-)

Abdel.

Reply via email to