// Label around sectioning number:
if (!bstyle->labeltag().empty()) {
sgml::openTag(os, bstyle->labeltag());
- os << expandLabel(buf.params().getLyXTextClass(), bstyle, false);
+ os << expandLabel(buf, bstyle, false);
sgml::closeTag(os, bstyle->labeltag());
}