X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFuncStatus.cpp;h=d56df61aa01e5130523e42623cd9af3349f75b38;hb=b7ab77c2480f31bc39ae076d83f212674ecb63b9;hp=17e59e677ded3666dfb11a794b1d020f6305f2b4;hpb=f630be890494c849981e4fb52ea4740506e92bed;p=lyx.git diff --git a/src/FuncStatus.cpp b/src/FuncStatus.cpp index 17e59e677d..d56df61aa0 100644 --- a/src/FuncStatus.cpp +++ b/src/FuncStatus.cpp @@ -41,7 +41,7 @@ void FuncStatus::unknown(bool b) if (b) v_ |= UNKNOWN; else - v_ &= !UNKNOWN; + v_ &= ~UNKNOWN; } @@ -52,10 +52,10 @@ bool FuncStatus::unknown() const } -void FuncStatus::enabled(bool b) +void FuncStatus::setEnabled(bool b) { if (b) - v_ &= !DISABLED; + v_ &= ~DISABLED; else v_ |= DISABLED; }