X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsgml.cpp;h=985478498a3583dfee1b1325f56a99f39cad55b0;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=7b899f223cfe3124a64b8e753dd6fa7db7c0c91c;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/sgml.cpp b/src/sgml.cpp index 7b899f223c..985478498a 100644 --- a/src/sgml.cpp +++ b/src/sgml.cpp @@ -220,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 {