#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;
{
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;