void InsetCaption::write(ostream & os) const
{
os << "Caption\n";
- text_.write(buffer(), os);
+ text().write(buffer(), os);
}
pit.push_back(CursorSlice(*this));
Toc & toc = buffer().tocBackend().toc(type_);
- docstring const str = full_label_ + ". " + text_.getPar(0).asString();
+ docstring const str = full_label_ + ". " + text().getPar(0).asString();
toc.push_back(TocItem(pit, 0, str));
// Proceed with the rest of the inset.