]> git.lyx.org Git - features.git/commitdiff
fix 'M-x math-matrix'
authorAndré Pönitz <poenitz@gmx.net>
Fri, 17 Aug 2001 17:23:12 +0000 (17:23 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 17 Aug 2001 17:23:12 +0000 (17:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2540 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index ab7af81c4bb7ae79363bdffccaa13b13520b7f26..935b4b9df0ada693d5e72c6d97edd220ca019914 100644 (file)
@@ -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);