mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 03:23:12 +00:00
enable LFUN_MATH_NUMBER_LINE_TOGGLE when display() is not inline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27552 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
be16d48d5d
commit
2b30ed58ef
@ -1346,8 +1346,9 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
case LFUN_MATH_NUMBER_LINE_TOGGLE: {
|
case LFUN_MATH_NUMBER_LINE_TOGGLE: {
|
||||||
// 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?
|
||||||
bool const enable = (type_ == hullMultline) ?
|
bool const enable = (type_ == hullMultline)
|
||||||
(nrows() - 1 == cur.row()) : display();
|
? (nrows() - 1 == cur.row())
|
||||||
|
: 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(numbered(r));
|
status.setOnOff(numbered(r));
|
||||||
|
Loading…
Reference in New Issue
Block a user