]> git.lyx.org Git - lyx.git/commitdiff
Fix TOC output of math insets.
authorRichard Heck <rgheck@comcast.net>
Tue, 12 Jan 2010 20:24:53 +0000 (20:24 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 12 Jan 2010 20:24:53 +0000 (20:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32998 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 233057e9163ad9058363f378066dbef466f92de7..b3b75f020ee63544f98390fd9e9a9d4a374b51dd 100644 (file)
@@ -2447,7 +2447,8 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
                if (inset) {
                        InsetCommand const * ic = inset->asInsetCommand();
                        InsetLayout const & il = inset->getLayout();
-                       if (!fortoc || il.isInToc() || (ic && ic->isInToc())) {
+                       InsetMath const * im = inset->asInsetMath();
+                       if (!fortoc || im || il.isInToc() || (ic && ic->isInToc())) {
                                OutputParams np = runparams;
                                if (!il.htmlisblock())
                                        np.html_in_par = true;