From 788b0097a6ed36f6c977ba36077195ea8b9c0f30 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 21 May 2009 10:14:07 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathHull.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2