From 15f64f84135cd9ed5b9835fd860685617283b9d8 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Fri, 27 Jan 2017 00:39:45 +0100 Subject: [PATCH] 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. --- src/insets/InsetInclude.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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). -- 2.39.2