]> git.lyx.org Git - features.git/commitdiff
Fix crash reported by Enrico. Thinko or something in r35856.
authorRichard Heck <rgheck@comcast.net>
Tue, 16 Nov 2010 18:26:21 +0000 (18:26 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 16 Nov 2010 18:26:21 +0000 (18:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36317 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetLabel.cpp

index 9c41e602ca6b443de8f960600a1a64d23e552947..f07c3cff1f50338fb45de9247d11c938343c11f6 100644 (file)
@@ -158,8 +158,7 @@ void InsetLabel::addToToc(DocIterator const & cpit)
                DocIterator const ref_pit(it->second);
                if (it->first->lyxCode() == MATH_REF_CODE)
                        toc.push_back(TocItem(ref_pit, 1,
-                               it->first->asInsetMath()->asHullInset()->asRefInset()
-                                       ->screenLabel()));
+                               it->first->asInsetMath()->asRefInset()->screenLabel()));
                else
                        toc.push_back(TocItem(ref_pit, 1,
                                static_cast<InsetRef *>(it->first)->screenLabel()));