]> git.lyx.org Git - features.git/commitdiff
* lyxfunc.C (getStatus): fix handling of LFUN_RUNCHKTEX (bug 2831)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 21 Sep 2006 09:46:52 +0000 (09:46 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 21 Sep 2006 09:46:52 +0000 (09:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15096 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfunc.C

index 5a52c9a3bf4bdafd3ae59ebd2fe78cccad90994e..9cc21249d4c9c4c6cbecb8457c801e4b0e1d9881 100644 (file)
@@ -420,7 +420,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
                break;
 
        case LFUN_BUFFER_CHKTEX:
-               enable = buf->isLatex() && lyxrc.chktex_command != "none";
+               enable = buf->isLatex() && !lyxrc.chktex_command.empty();
                break;
 
        case LFUN_BUILD_PROGRAM: