The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit 65b74b9a1d54f524426a15128b2b599906f1e9a0
Author: Richard Heck <[email protected]>
Date:   Fri Mar 8 16:38:45 2013 -0500

    Fix bug #8580: Do not include material in the XHTML TOC that is not
    also included in the output.

diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp
index 1d8a054..08d77bb 100644
--- a/src/insets/InsetTOC.cpp
+++ b/src/insets/InsetTOC.cpp
@@ -159,6 +159,11 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams 
const & op) const
        Toc::const_iterator const en = toc.end();
        int lastdepth = 0;
        for (; it != en; ++it) {
+               // do not output entries that are not actually included in the 
output,
+               // e.g., stuff in non-active branches or notes or whatever.
+               if (!it->isOutput())
+                       continue;
+
                // First, we need to manage increases and decreases of depth
                int const depth = it->depth();
                

-----------------------------------------------------------------------

Summary of changes:
 src/insets/InsetTOC.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to