factory::readInset(): Set again the buffer for InsetMathHull.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23446 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-03-04 14:38:30 +00:00
parent ed5350bae7
commit da652941d5

View File

@ -538,8 +538,13 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
return 0;
}
// Set the buffer reference for proper parsing of some insets
// (InsetCollapsable for example)
inset->setBuffer(const_cast<Buffer &>(buf));
inset->read(lex);
// Set again the buffer for insets that are created inside this inset
// (InsetMathHull for example).
inset->setBuffer(const_cast<Buffer &>(buf));
}
return inset.release();
}