mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
fix parser bug reportred by Rob.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4858 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9b4bf4c29d
commit
ff19a20470
@ -652,7 +652,9 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
|
||||
bool up = (t.cat() == catSuper);
|
||||
// we need no new script inset if the last thing was a scriptinset,
|
||||
// which has that script already not the same script already
|
||||
if (cell->size() && cell->back()->asScriptInset() &&
|
||||
if (!cell->size())
|
||||
cell->push_back(MathAtom(new MathScriptInset(up)));
|
||||
else if (cell->back()->asScriptInset() &&
|
||||
!cell->back()->asScriptInset()->has(up))
|
||||
cell->back()->asScriptInset()->ensure(up);
|
||||
else if (cell->back()->asScriptInset())
|
||||
|
Loading…
Reference in New Issue
Block a user