]> git.lyx.org Git - lyx.git/commitdiff
From John C. McCabe-Dansted:
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 1 Feb 2007 08:55:31 +0000 (08:55 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 1 Feb 2007 08:55:31 +0000 (08:55 +0000)
Don't display n copies of the errors if you run chktex n times.

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

src/buffer.C

index 8aa8d259ad6328cda55bcb579f0cce1a6da7a71a..91b2649307b00372539c6a24b4d011ddcc5b504c 100644 (file)
@@ -1166,8 +1166,11 @@ int Buffer::runChktex()
                Alert::error(_("chktex failure"),
                             _("Could not run chktex successfully."));
        } else if (res > 0) {
+               ErrorList & errorList = errorLists_["ChkTeX"];
+               // Clear out old errors
+               errorList.clear();
                // Fill-in the error list with the TeX errors
-               bufferErrors(*this, terr, errorLists_["ChkTeX"]);
+               bufferErrors(*this, terr, errorList);
        }
 
        busy(false);