Fix float label prefix (bug #8536)

This commit is contained in:
Juergen Spitzmueller 2013-02-04 08:38:50 +01:00
parent 9dbbe6a372
commit f9691aed8d
2 changed files with 3 additions and 1 deletions

View File

@ -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<InsetCaption *>(caption_inset)->type();
string const & ftype = static_cast<InsetCaption *>(caption_inset)->floattype();
FloatList const & fl = cur.buffer()->params().documentClass().floats();
if (fl.typeExist(ftype)) {
Floating const & flt = fl.getType(ftype);

View File

@ -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;