X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsgml.cpp;h=985478498a3583dfee1b1325f56a99f39cad55b0;hb=4be1b1a2a4f475297088820279494aa12aa3859d;hp=068a831f8bf9ca99ab0449647de345bdf432ea8b;hpb=a01cb111a07717a337c18860216359cdbe22af3c;p=lyx.git diff --git a/src/sgml.cpp b/src/sgml.cpp index 068a831f8b..985478498a 100644 --- a/src/sgml.cpp +++ b/src/sgml.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author José Matos + * \author José Matos * \author John Levon * * Full author contact details are available in file CREDITS. @@ -28,7 +28,6 @@ #include "support/textutils.h" #include -#include using namespace std; using namespace lyx::support; @@ -221,9 +220,12 @@ void sgml::openTag(Buffer const & buf, odocstream & os, if (param.find('#') != string::npos) { // FIXME UNICODE if (!style.counter.empty()) - counters.step(style.counter); + // This uses InternalUpdate at the moment becuase sgml output + // does not do anything with tracked counters, and it would need + // to track layouts if it did want to use them. + counters.step(style.counter, InternalUpdate); else - counters.step(from_ascii(name)); + counters.step(from_ascii(name), InternalUpdate); int i = counters.value(from_ascii(name)); attribute = subst(param, "#", convert(i)); } else {