From 93f48bad128126c9e5b8d5e76f41ef36bc0a0336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 29 Aug 2002 10:48:52 +0000 Subject: [PATCH] Fix #593 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5170 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_parser.C | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 7e4215d340..1f7e3b5706 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -724,7 +724,7 @@ void Parser::parse1(MathGridInset & grid, unsigned flags, } else if (t.character() == ']' && (flags & FLAG_BRACK_LAST)) { - lyxerr << "finished reading option\n"; + //lyxerr << "finished reading option\n"; return; } @@ -1078,6 +1078,12 @@ void Parser::parse1(MathGridInset & grid, unsigned flags, parse2(cell->back(), FLAG_ITEM, mode, false); } + else if (t.cs() == "framebox") { + cell->push_back(createMathInset(t.cs())); + parse(cell->back().nucleus()->cell(0), FLAG_OPTION, mode); + parse(cell->back().nucleus()->cell(1), FLAG_ITEM, mode); + } + #if 0 else if (t.cs() == "infer") { MathArray ar; @@ -1149,13 +1155,14 @@ void Parser::parse1(MathGridInset & grid, unsigned flags, MathInset::mode_type m = mode; if (m == MathInset::UNDECIDED_MODE) m = at->currentMode(); - MathArray opt; - parse(opt, FLAG_OPTION, MathInset::VERBATIM_MODE); MathInset::idx_type start = 0; - if (opt.size()) { - start = 1; - at.nucleus()->cell(0) = opt; - } + // this fails on \bigg[...\bigg] + //MathArray opt; + //parse(opt, FLAG_OPTION, MathInset::VERBATIM_MODE); + //if (opt.size()) { + // start = 1; + // at.nucleus()->cell(0) = opt; + //} for (MathInset::idx_type i = start; i < at->nargs(); ++i) parse(at.nucleus()->cell(i), FLAG_ITEM, m); cell->push_back(at);