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
This commit is contained in:
Vincent van Ravesteijn 2009-05-21 10:14:07 +00:00
parent 2537cd07f4
commit 788b0097a6

View 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;
}