mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
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:
parent
ed5350bae7
commit
da652941d5
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user