]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetwrap.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetwrap.C
index 1ac102ba36c3dd12ded6f33057766aa4fe9b1397..7d41b6df86586c56f04a01fe4834c29f5024a004 100644 (file)
@@ -242,12 +242,12 @@ void InsetWrap::addToToc(lyx::toc::TocList & toclist, Buffer const & buf) const
        // Find a caption layout in one of the (child inset's) pars
        for (; pit != end; ++pit) {
                if (pit->layout()->labeltype == LABEL_SENSITIVE) {
-                       string const name = floatname(params_.type, buf.params());
+                       string const type = params_.type;
                        string const str =
-                               convert<string>(toclist[name].size() + 1)
+                               convert<string>(toclist[type].size() + 1)
                                + ". " + pit->asString(buf, false);
                        lyx::toc::TocItem const item(pit->id(), 0 , str);
-                       toclist[name].push_back(item);
+                       toclist[type].push_back(item);
                }
        }
 }