]> git.lyx.org Git - features.git/commitdiff
Fix ChkTeX error reporting (#8639)
authorScott Kostyshak <skostysh@lyx.org>
Sun, 21 Apr 2013 05:39:19 +0000 (01:39 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Mon, 22 Apr 2013 19:51:36 +0000 (15:51 -0400)
ChkTeX errors from a previous run are now cleared from the
error list if ChkTeX exits with no error.

src/Buffer.cpp

index 01a72f287951c4a9e9e412f7bac6b03de6a5f8be..7f3773c0f3dab2512fcd75d5ece3bbbcc033c9e8 100644 (file)
@@ -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);