X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsgml.cpp;h=985478498a3583dfee1b1325f56a99f39cad55b0;hb=57a8ea32c0a2443c188a522b516100bb74ec4a8d;hp=f895287195b5c55aabc8d7e8301cb572fb6c8057;hpb=caa4e94bf02b9d3131bc280390fae44683fd5e9a;p=lyx.git diff --git a/src/sgml.cpp b/src/sgml.cpp index f895287195..985478498a 100644 --- a/src/sgml.cpp +++ b/src/sgml.cpp @@ -220,10 +220,12 @@ void sgml::openTag(Buffer const & buf, odocstream & os, if (param.find('#') != string::npos) { // FIXME UNICODE if (!style.counter.empty()) - // NOTE This could use OutputUpdate and track the counters. - 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 {