From: Vincent van Ravesteijn Date: Thu, 21 May 2009 10:14:07 +0000 (+0000) Subject: Hide "Number this line" for single line equations. X-Git-Tag: 2.0.0~6506 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=788b0097a6ed36f6c977ba36077195ea8b9c0f30;p=features.git Hide "Number this line" for single line equations. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29762 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 31e0bb2880..8035fb171b 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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; }