Fix part 1 of bug #7351

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38017 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2011-03-23 21:05:44 +00:00
parent 55ef7b50b5
commit dd23151da9

View File

@ -1596,7 +1596,7 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
// LABEL_INSERT? // LABEL_INSERT?
bool const enable = (type_ == hullMultline) bool const enable = (type_ == hullMultline)
? (nrows() - 1 == cur.row()) ? (nrows() - 1 == cur.row())
: display() != Inline && nrows() > 1; : display() != Inline;
row_type const r = (type_ == hullMultline) ? nrows() - 1 : cur.row(); row_type const r = (type_ == hullMultline) ? nrows() - 1 : cur.row();
status.setEnabled(enable); status.setEnabled(enable);
status.setOnOff(enable && numbered(r)); status.setOnOff(enable && numbered(r));