]> 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 a08c43cc57ee33208d13111c89bf0d316e25fe5c..7d41b6df86586c56f04a01fe4834c29f5024a004 100644 (file)
@@ -83,7 +83,6 @@ void InsetWrap::doDispatch(LCursor & cur, FuncRequest & cmd)
                InsetWrapMailer::string2params(cmd.argument, params);
                params_.placement = params.placement;
                params_.width     = params.width;
-               cur.bv().update();
                break;
        }
 
@@ -243,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);
                }
        }
 }