+ setLabel(_("wrap: ") + floatName(params_.type));
+ Counters & cnts =
+ buffer().masterBuffer()->params().documentClass().counters();
+ if (utype == OutputUpdate) {
+ // counters are local to the wrap
+ cnts.saveLastCounter();
+ }
+ string const saveflt = cnts.current_float();
+
+ // Tell to captions what the current float is
+ cnts.current_float(params().type);
+
+ InsetCollapsable::updateBuffer(it, utype);
+
+ // reset afterwards
+ cnts.current_float(saveflt);
+ if (utype == OutputUpdate)
+ cnts.restoreLastCounter();
+}