Paragraph * tmp = inset.paragraph();
while (tmp) {
if (tmp->layout()->name() == caplayout) {
+ string const name = floatname(type(), buf->params);
string const str =
- tostr(toclist[type()].size() + 1)
+ tostr(toclist[name].size() + 1)
+ ". " + tmp->asString(buf, false);
toc::TocItem const item(tmp, 0 , str);
- toclist[type()].push_back(item);
+ toclist[name].push_back(item);
}
tmp = tmp->next();
}