]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetWrap.cpp
index c12628b61fb087b0bb86a06d664c297d7a9653be..97fed142ec0a017fbbab2fae57d688f82544029e 100644 (file)
@@ -114,12 +114,12 @@ bool InsetWrap::getStatus(Cursor & cur, FuncRequest const & cmd,
 }
 
 
-void InsetWrap::updateLabels(ParIterator const & it, bool out)
+void InsetWrap::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        setLabel(_("wrap: ") + floatName(params_.type));
        Counters & cnts =
                buffer().masterBuffer()->params().documentClass().counters();
-       if (out) {
+       if (utype == OutputUpdate) {
                // counters are local to the wrap
                cnts.saveLastCounter();
        }
@@ -128,11 +128,11 @@ void InsetWrap::updateLabels(ParIterator const & it, bool out)
        // Tell to captions what the current float is
        cnts.current_float(params().type);
 
-       InsetCollapsable::updateLabels(it, out);
+       InsetCollapsable::updateBuffer(it, utype);
 
        // reset afterwards
        cnts.current_float(saveflt);
-       if (out)
+       if (utype == OutputUpdate)
                cnts.restoreLastCounter();
 }