]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.cpp
tex2lyx: support for multiple indices and subindices
[lyx.git] / src / sgml.cpp
index f895287195b5c55aabc8d7e8301cb572fb6c8057..985478498a3583dfee1b1325f56a99f39cad55b0 100644 (file)
@@ -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<string>(i));
                } else {