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
Alert::error(_("chktex failure"),
_("Could not run chktex successfully."));
} else if (res > 0) {
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
// Fill-in the error list with the TeX errors
- bufferErrors(*this, terr, errorLists_["ChkTeX"]);
+ bufferErrors(*this, terr, errorList);