From: Scott Kostyshak Date: Sun, 21 Apr 2013 05:39:19 +0000 (-0400) Subject: Fix ChkTeX error reporting (#8639) X-Git-Tag: 2.1.0beta1~357 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4e6932e44f892a4167912bd904ba396efe7f88a8;p=features.git Fix ChkTeX error reporting (#8639) ChkTeX errors from a previous run are now cleared from the error list if ChkTeX exits with no error. --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 01a72f2879..7f3773c0f3 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1981,7 +1981,7 @@ int Buffer::runChktex() if (res == -1) { Alert::error(_("chktex failure"), _("Could not run chktex successfully.")); - } else if (res > 0) { + } else { ErrorList & errlist = d->errorLists["ChkTeX"]; errlist.clear(); bufferErrors(terr, errlist);