From e40205e749a367979469a599a1184bea66740cf6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Tue, 16 May 2017 23:44:32 +0200 Subject: [PATCH] InsetFloat.cpp: backport fix for bug #10618 --- src/insets/InsetFloat.cpp | 2 +- status.22x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp index ae1bf63816..89a0fbe620 100644 --- a/src/insets/InsetFloat.cpp +++ b/src/insets/InsetFloat.cpp @@ -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))); } diff --git a/status.22x b/status.22x index 5f3cc9aeb1..c59e02dafc 100644 --- a/status.22x +++ b/status.22x @@ -45,6 +45,8 @@ What's new - Remove duplicate entries from the Symbols dialog (bug 10644). +- Always shows the float type in the float inset label (bug 10618). + * INTERNALS -- 2.39.5