From 8a74c33df1d37d987f7a8acca2fe58aa8fa26944 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 23 Apr 2008 18:49:55 +0000 Subject: [PATCH] Make the logic a bit clearer. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24477 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetNomencl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 6d05bc9006..75e639083a 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -119,7 +119,8 @@ int InsetPrintNomencl::docbook(odocstream & os, OutputParams const &) const { os << "\n"; int newlines = 2; - for (InsetIterator it = inset_iterator_begin(buffer().inset()); it;) { + InsetIterator it = inset_iterator_begin(buffer().inset()); + while (it) { if (it->lyxCode() == NOMENCL_CODE) { newlines += static_cast(*it).docbookGlossary(os); ++it;