commit 15f64f84135cd9ed5b9835fd860685617283b9d8
Author: Guillaume Munch <[email protected]>
Date: Fri Jan 27 00:39:45 2017 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index 482fdb2..3a8c0b8 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).