]> git.lyx.org Git - features.git/commitdiff
Make the logic a bit clearer.
authorRichard Heck <rgheck@comcast.net>
Wed, 23 Apr 2008 18:49:55 +0000 (18:49 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 23 Apr 2008 18:49:55 +0000 (18:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24477 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNomencl.cpp

index 6d05bc900648313578f302c53a337353f062d0d9..75e639083adf856c998571120d6c91d1110b5071 100644 (file)
@@ -119,7 +119,8 @@ int InsetPrintNomencl::docbook(odocstream & os, OutputParams const &) const
 {
        os << "<glossary>\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<InsetNomencl const &>(*it).docbookGlossary(os);
                        ++it;