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
This commit is contained in:
Georg Baum 2007-02-01 08:55:31 +00:00
parent bdbe6d3d7d
commit 7a9da2b93a

View 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);