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:
André Pönitz 2002-06-04 04:54:02 +00:00
parent 7eb5643f4f
commit b0b5756ff4
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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: