]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
[lyx.git] / src / insets / InsetFloat.cpp
index 5e5c79c3d9486eaa719c777f3fa030276f0c9031..421b106a69984e1b19fe39b4d0ffad6ca8e0974c 100644 (file)
@@ -152,8 +152,11 @@ void InsetFloat::doDispatch(Cursor & cur, FuncRequest & cmd)
                setNewLabel();
                if (params_.type != params.type) {
                        params_.type = params.type;
-                       buffer().updateBuffer();
+                       cur.forceBufferUpdate();
                }
+               // what we really want here is a TOC update, but that means
+               // a full buffer update
+               cur.forceBufferUpdate();
                break;
        }