]> git.lyx.org Git - lyx.git/commitdiff
one less use of inset codes
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 23 Apr 2008 13:00:57 +0000 (13:00 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 23 Apr 2008 13:00:57 +0000 (13:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24476 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNomencl.cpp

index 10aef0f51d62d63f2bbbd857fc8cff8bbef4a2f7..6d05bc900648313578f302c53a337353f062d0d9 100644 (file)
@@ -123,9 +123,8 @@ int InsetPrintNomencl::docbook(odocstream & os, OutputParams const &) const
                if (it->lyxCode() == NOMENCL_CODE) {
                        newlines += static_cast<InsetNomencl const &>(*it).docbookGlossary(os);
                        ++it;
-               } else if(it->lyxCode() == NOTE_CODE &&
-                         static_cast<InsetNote const &>(*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)