]> git.lyx.org Git - features.git/commitdiff
Hide "Number this line" for single line equations.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 21 May 2009 10:14:07 +0000 (10:14 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 21 May 2009 10:14:07 +0000 (10:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29762 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 31e0bb2880b5459e5fbd894dd9e6c9aa356b4807..8035fb171bb6c8203f99eb69d9e9a3b6ccc57667 100644 (file)
@@ -1374,10 +1374,10 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
                // LABEL_INSERT?
                bool const enable = (type_ == hullMultline)
                        ? (nrows() - 1 == cur.row())
-                       : display() != Inline;
+                       : display() != Inline && nrows() > 1;
                row_type const r = (type_ == hullMultline) ? nrows() - 1 : cur.row();
                status.setEnabled(enable);
-               status.setOnOff(numbered(r));
+               status.setOnOff(enable && numbered(r));
                return true;
        }