]> git.lyx.org Git - features.git/commitdiff
Fix wrong DocIterator argument
authorGuillaume Munch <gm@lyx.org>
Thu, 26 Jan 2017 23:39:45 +0000 (00:39 +0100)
committerGuillaume Munch <gm@lyx.org>
Thu, 26 Jan 2017 23:42:37 +0000 (00:42 +0100)
Regression at 3391fed3.

The child's InsetText is the root, so we start with an empty DocIterator.

Thanks Scott for the report.

src/insets/InsetInclude.cpp

index 482fdb2110f434afd9594dfc17d11f1033a40457..3a8c0b8c7ed6c02b513798e3034041739b914470 100644 (file)
@@ -1164,7 +1164,8 @@ void InsetInclude::addToToc(DocIterator const & cpit, bool output_active,
                        return;
 
                // Include Tocs from children
-               childbuffer->inset().addToToc(cpit, output_active, utype, backend);
+               childbuffer->inset().addToToc(DocIterator(), output_active, utype,
+                                             backend);
                //Copy missing outliner names (though the user has been warned against
                //having different document class and module selection between master
                //and child).