From 4d752d67782bfe88b051b56cf2ee29e830803c62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 17 Aug 2001 17:23:12 +0000 Subject: [PATCH] fix 'M-x math-matrix' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2540 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index ab7af81c4b..935b4b9df0 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1171,12 +1171,12 @@ void MathCursor::interpret(string const & s) //owner_->getIntl()->getTrans().TranslateAndInsert(c, lt); //lyxerr << "trans: '" << c << "' int: " << int(c) << endl; - if (s.size() > 8 && s.substr(0, 8) == "\\matrix ") { + if (s.size() > 7 && s.substr(0, 7) == "matrix ") { int m = 1; int n = 1; string v_align; string h_align; - istringstream is(s.substr(8).c_str()); + istringstream is(s.substr(7).c_str()); is >> m >> n >> v_align >> h_align; m = std::max(1, m); n = std::max(1, n); -- 2.39.2