From: Jean-Marc Lasgouttes Date: Wed, 23 Apr 2008 13:00:57 +0000 (+0000) Subject: one less use of inset codes X-Git-Tag: 1.6.10~5017 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7cb13055f30693b3e86988dee5cb8ab20622305b;p=features.git one less use of inset codes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24476 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 10aef0f51d..6d05bc9006 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -123,9 +123,8 @@ int InsetPrintNomencl::docbook(odocstream & os, OutputParams const &) const if (it->lyxCode() == NOMENCL_CODE) { newlines += static_cast(*it).docbookGlossary(os); ++it; - } else if(it->lyxCode() == NOTE_CODE && - static_cast(*it).params().type == InsetNoteParams::Note) { - // Don't output anything nested in note insets + } else if (!it->producesOutput()) { + // Ignore contents of insets that are not in output size_t const depth = it.depth(); ++it; while (it.depth() > depth)