docstring Paragraph::expandLabel(LayoutPtr const & layout,
BufferParams const & bparams, bool process_appendix) const
{
- TextClass const & tclass = bparams.textClass();
+ TextClass const & tclass = bparams.getTextClass();
docstring fmt;
if (process_appendix && d->params_.appendix())
// to be valid!
bool asdefault = forceEmptyLayout();
- if (asdefault)
- style = bparams.textClass().defaultLayout();
- else
+ if (asdefault) {
+ style = bparams.getTextClass().defaultLayout();
+ } else {
style = d->layout_;
+ }
// Current base font for all inherited font changes, without any
// change caused by an individual character, except for the language: