commit ea698f51bc26ad61e9fafed11f493c7f420fb609
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Jul 27 10:52:16 2025 +0200

    Clear error list before re-running LaTeX
    
    Otherwise we end up with duplicate errors (#12990)
---
 src/LaTeX.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp
index 3121af8fbc..0204b67c75 100644
--- a/src/LaTeX.cpp
+++ b/src/LaTeX.cpp
@@ -433,6 +433,7 @@ int LaTeX::run(TeXErrors & terr)
                        rerun = false;
                        ++count;
                        LYXERR(Debug::OUTFILE, "Run #" << count);
+                       terr.clearErrors();
                        message(runMessage(count));
                        startscript();
                        scanres = scanLogFile(terr);
@@ -530,6 +531,7 @@ int LaTeX::run(TeXErrors & terr)
                rerun = false;
                ++count;
                LYXERR(Debug::OUTFILE, "Run #" << count);
+               terr.clearErrors();
                message(runMessage(count));
                startscript();
                scanres = scanLogFile(terr);
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to