]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
Fix bad cursor positioning when entering an inset
[lyx.git] / src / insets / InsetFloat.cpp
index cfd40026777413c2b71a910e57297ef6cb1754ce..89a0fbe620bf00744105d37d453eedb3a1a9dd77 100644 (file)
@@ -127,7 +127,7 @@ void InsetFloat::setCaptionType(std::string const & type)
        params_.type = captionType();
        // check if the float type exists
        if (buffer().params().documentClass().floats().typeExist(params_.type))
-               setLabel(_("float: ") + floatName(params_.type));
+               setNewLabel();
        else
                setLabel(bformat(_("ERROR: Unknown float type: %1$s"), from_utf8(params_.type)));
 }
@@ -487,7 +487,7 @@ void InsetFloat::setNewLabel()
 
 bool InsetFloat::allowsCaptionVariation(std::string const & newtype) const
 {
-       return !params_.subfloat && newtype != "LongTableNoNumber";
+       return !params_.subfloat && newtype != "Unnumbered";
 }