]> git.lyx.org Git - features.git/blobdiff - src/insets/insetwrap.C
use floatname instead of floattype
[features.git] / src / insets / insetwrap.C
index 43dc8afd500f2690e8d950ff12c5a08d82d12a94..b33e2f3d326fa02ada336c76a3421bbe9969ef5d 100644 (file)
@@ -260,11 +260,12 @@ void InsetWrap::addToToc(toc::TocList & toclist, Buffer const * buf) const
        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();
        }