From f9691aed8dd13e349349cd28cf1b6245e7aae7fd Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 4 Feb 2013 08:38:50 +0100 Subject: [PATCH] Fix float label prefix (bug #8536) --- src/Text.cpp | 2 +- src/insets/InsetCaption.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Text.cpp b/src/Text.cpp index 683a8582ac..932a3929d7 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -1948,7 +1948,7 @@ docstring Text::getPossibleLabel(Cursor const & cur) const // For captions, we just take the caption type Inset * caption_inset = cur.innerInsetOfType(CAPTION_CODE); if (caption_inset) { - string const & ftype = static_cast(caption_inset)->type(); + string const & ftype = static_cast(caption_inset)->floattype(); FloatList const & fl = cur.buffer()->params().documentClass().floats(); if (fl.typeExist(ftype)) { Floating const & flt = fl.getType(ftype); diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index fd512e187c..d792d77640 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -25,6 +25,8 @@ public: /// std::string const & type() const { return type_; } /// + std::string const & floattype() const { return floattype_; } + /// docstring layoutName() const; /// return the mandatory argument (LaTeX format) only void getArgument(otexstream & os, OutputParams const &) const;