* InsetMathHull:

- fix rest of bug 518. Part of this fix was already (accidentally) committed by Uwe in r24667.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24689 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-05-09 07:50:12 +00:00
parent 2e9e375f73
commit 4ba07f11bd

View File

@ -1248,8 +1248,10 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
case LFUN_MATH_NONUMBER: { case LFUN_MATH_NONUMBER: {
// FIXME: what is the right test, this or the one of // FIXME: what is the right test, this or the one of
// LABEL_INSERT? // LABEL_INSERT?
status.enabled(display()); bool const enable = (type_ == hullMultline) ?
(nrows() - 1 == cur.row()) : display();
row_type const r = (type_ == hullMultline) ? nrows() - 1 : cur.row(); row_type const r = (type_ == hullMultline) ? nrows() - 1 : cur.row();
status.enabled(enable);
status.setOnOff(numbered(r)); status.setOnOff(numbered(r));
return true; return true;
} }