fix 'M-x math-matrix'

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2540 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-08-17 17:23:12 +00:00
parent 616f124e92
commit 4d752d6778

View 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);