From 7cb13055f30693b3e86988dee5cb8ab20622305b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 23 Apr 2008 13:00:57 +0000 Subject: [PATCH] one less use of inset codes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24476 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetNomencl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.39.5