mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
InsetMathHull::addToToc(): Work around buffer reference in InsetMathHull. This inset is created at too many places (see Parser::parse1() in MathParser.cpp).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23307 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d4cacf3642
commit
e56e5e213c
@ -196,6 +196,13 @@ InsetMathHull & InsetMathHull::operator=(InsetMathHull const & other)
|
||||
|
||||
void InsetMathHull::addToToc(ParConstIterator const & pit) const
|
||||
{
|
||||
if (!buffer_) {
|
||||
//FIXME: buffer_ should be set at creation for this inset! Problem is
|
||||
// This inset is created at too many places (see Parser::parse1() in
|
||||
// MathParser.cpp).
|
||||
return;
|
||||
}
|
||||
|
||||
vector<docstring> labels;
|
||||
getLabelList(labels);
|
||||
if (labels.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user