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) {
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)