From: André Pönitz Date: Fri, 17 Aug 2001 17:23:12 +0000 (+0000) Subject: fix 'M-x math-matrix' X-Git-Tag: 1.6.10~20805 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4d752d67782bfe88b051b56cf2ee29e830803c62;p=features.git fix 'M-x math-matrix' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2540 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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);