]> git.lyx.org Git - features.git/commitdiff
InsetFloat.cpp: fix bug #10618
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 11 Apr 2017 22:22:23 +0000 (00:22 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 11 Apr 2017 22:22:23 +0000 (00:22 +0200)
the label code missed to check all options (rotated, span columns)

src/insets/InsetFloat.cpp

index 7a95178227230f14607555698c0f1af35ccb8ea0..287cfa4fffcbcecba58e9e1a872543286e2e53b1 100644 (file)
@@ -129,7 +129,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)));
 }