InsetFloat.cpp: backport fix for bug #10618

This commit is contained in:
Uwe Stöhr 2017-05-16 23:44:32 +02:00
parent 0887f89350
commit e40205e749
2 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,7 @@ void InsetFloat::setCaptionType(std::string const & type)
params_.type = captionType(); params_.type = captionType();
// check if the float type exists // check if the float type exists
if (buffer().params().documentClass().floats().typeExist(params_.type)) if (buffer().params().documentClass().floats().typeExist(params_.type))
setLabel(_("float: ") + floatName(params_.type)); setNewLabel();
else else
setLabel(bformat(_("ERROR: Unknown float type: %1$s"), from_utf8(params_.type))); setLabel(bformat(_("ERROR: Unknown float type: %1$s"), from_utf8(params_.type)));
} }

View File

@ -45,6 +45,8 @@ What's new
- Remove duplicate entries from the Symbols dialog (bug 10644). - Remove duplicate entries from the Symbols dialog (bug 10644).
- Always shows the float type in the float inset label (bug 10618).
* INTERNALS * INTERNALS