one less use of inset codes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24476 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-04-23 13:00:57 +00:00
parent 92e71f01ee
commit 7cb13055f3

View File

@ -123,9 +123,8 @@ int InsetPrintNomencl::docbook(odocstream & os, OutputParams const &) const
if (it->lyxCode() == NOMENCL_CODE) { if (it->lyxCode() == NOMENCL_CODE) {
newlines += static_cast<InsetNomencl const &>(*it).docbookGlossary(os); newlines += static_cast<InsetNomencl const &>(*it).docbookGlossary(os);
++it; ++it;
} else if(it->lyxCode() == NOTE_CODE && } else if (!it->producesOutput()) {
static_cast<InsetNote const &>(*it).params().type == InsetNoteParams::Note) { // Ignore contents of insets that are not in output
// Don't output anything nested in note insets
size_t const depth = it.depth(); size_t const depth = it.depth();
++it; ++it;
while (it.depth() > depth) while (it.depth() > depth)