]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.cpp
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / InsetNomencl.cpp
index 6d05bc900648313578f302c53a337353f062d0d9..e063795760c29b9bc1392cc4f60e46e4f2a270cd 100644 (file)
 #include "Buffer.h"
 #include "DispatchResult.h"
 #include "FuncRequest.h"
-#include "support/gettext.h"
 #include "InsetIterator.h"
 #include "LaTeXFeatures.h"
 #include "MetricsInfo.h"
 #include "sgml.h"
 
 #include "support/docstream.h"
+#include "support/gettext.h"
 
 using namespace std;
 
@@ -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;