From: Georg Baum Date: Thu, 1 Feb 2007 08:55:31 +0000 (+0000) Subject: From John C. McCabe-Dansted: X-Git-Tag: 1.6.10~10956 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7a9da2b93a19e82c08770e0f7cda28521d531453;p=features.git From John C. McCabe-Dansted: 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 --- diff --git a/src/buffer.C b/src/buffer.C index 8aa8d259ad..91b2649307 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -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);