mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
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:
parent
2537cd07f4
commit
788b0097a6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user