]> git.lyx.org Git - features.git/commitdiff
Generate the magic label always. We'll need it other times, when we do
authorRichard Heck <rgheck@comcast.net>
Thu, 10 Dec 2009 20:36:12 +0000 (20:36 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 10 Dec 2009 20:36:12 +0000 (20:36 +0000)
the other TOCs, in particular.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32466 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 2d8f168e13c70f5afd7df9415e04e025e6d62b73..0266c2e6ff9cf19a5b7875a12ebee99a7fceed7e 100644 (file)
@@ -2405,10 +2405,8 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
 
        Layout const & style = *d->layout_;
 
-       if (!fortoc 
-           && style.toclevel != Layout::NOT_IN_TOC
-           && style.toclevel <= buf.params().tocdepth) {
-               // we need to generate a magic label for this paragraph
+       if (!fortoc) {
+               // generate a magic label for this paragraph
                string const attr = "id='" + magicLabel() + "'";
                xs << CompTag("a", attr);
        }