]> git.lyx.org Git - features.git/commitdiff
correct in LFUN_MATH_NUMBER_TOGGLE the conversion of display state to enabled state
authorStephan Witt <switt@lyx.org>
Wed, 9 Jun 2010 12:04:25 +0000 (12:04 +0000)
committerStephan Witt <switt@lyx.org>
Wed, 9 Jun 2010 12:04:25 +0000 (12:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34634 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index ff4eecd2daa34843708a1b6e13cc98cf7d4a0b99..dd2b7fea911fd18facecd45bb049f5c030e643f3 100644 (file)
@@ -1469,7 +1469,7 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_MATH_NUMBER_TOGGLE:
                // FIXME: what is the right test, this or the one of
                // LABEL_INSERT?
-               status.setEnabled(display());
+               status.setEnabled(display() != Inline);
                status.setOnOff(numberedType());
                return true;