From b0b5756ff42dd7ec79d837ed61ee5be048aea505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 4 Jun 2002 04:54:02 +0000 Subject: [PATCH] disable matrix style operations in inlined math git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4330 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/lyxfunc.C | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 957993c2b0..af95614faf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ + +2002-06-04 André Pönitz + + * lyxfunc.C: disable array operation on simple formulae + 2002-06-03 John Levon * converter.C: constify a bit diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 088828537d..a5092c2643 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -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: