]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Fix assertion when checking if change in selection
[lyx.git] / src / insets / InsetCaption.cpp
index 5f7978ab3288f2206f6e509c9cf5f6585e81b123..8778d78730484c4554e9c67ba7f42cfdcccd9b02 100644 (file)
@@ -388,7 +388,8 @@ void InsetCaption::updateBuffer(ParIterator const & it, UpdateType utype)
                else
                        name = master.B_(tclass.floats().getType(type).name());
                docstring counter = from_utf8(type);
-               if ((is_subfloat_ = cnts.isSubfloat())) {
+               is_subfloat_ = cnts.isSubfloat();
+               if (is_subfloat_) {
                        // only standard captions allowed in subfloats
                        type_ = "Standard";
                        counter = "sub-" + from_utf8(type);