mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
disable matrix style operations in inlined math
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4330 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7eb5643f4f
commit
b0b5756ff4
@ -1,3 +1,8 @@
|
||||
|
||||
2002-06-04 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* lyxfunc.C: disable array operation on simple formulae
|
||||
|
||||
2002-06-03 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* converter.C: constify a bit
|
||||
|
@ -487,7 +487,7 @@ FuncStatus LyXFunc::getStatus(kb_action action,
|
||||
break;
|
||||
}
|
||||
case LFUN_MATH_VALIGN:
|
||||
if (mathcursor) {
|
||||
if (mathcursor && mathcursor->formula()->getType() != LM_OT_SIMPLE) {
|
||||
char align = mathcursor->valign();
|
||||
if (align == '\0') {
|
||||
disable = true;
|
||||
@ -507,7 +507,7 @@ FuncStatus LyXFunc::getStatus(kb_action action,
|
||||
break;
|
||||
|
||||
case LFUN_MATH_HALIGN:
|
||||
if (mathcursor) {
|
||||
if (mathcursor && mathcursor->formula()->getType() != LM_OT_SIMPLE) {
|
||||
char align = mathcursor->halign();
|
||||
if (align == '\0') {
|
||||
disable = true;
|
||||
@ -561,7 +561,8 @@ FuncStatus LyXFunc::getStatus(kb_action action,
|
||||
case LFUN_MATH_ROW_DELETE:
|
||||
case LFUN_MATH_COLUMN_INSERT:
|
||||
case LFUN_MATH_COLUMN_DELETE:
|
||||
disable = !mathcursor || !mathcursor->halign();
|
||||
disable = !mathcursor || !mathcursor->halign() ||
|
||||
mathcursor->formula()->getType() == LM_OT_SIMPLE;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user