From: Guillaume Munch Date: Thu, 26 Jan 2017 23:39:45 +0000 (+0100) Subject: Fix wrong DocIterator argument X-Git-Tag: 2.3.0alpha1~431 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=15f64f84135cd9ed5b9835fd860685617283b9d8;p=features.git Fix wrong DocIterator argument Regression at 3391fed3. The child's InsetText is the root, so we start with an empty DocIterator. Thanks Scott for the report. --- diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index 482fdb2110..3a8c0b8c7e 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -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).