The branch, master, has been updated. - Log -----------------------------------------------------------------
commit f9691aed8dd13e349349cd28cf1b6245e7aae7fd Author: Juergen Spitzmueller <[email protected]> Date: Mon Feb 4 08:38:50 2013 +0100 Fix float label prefix (bug #8536) diff --git a/src/Text.cpp b/src/Text.cpp index 683a858..932a392 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<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); diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index fd512e1..d792d77 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; ----------------------------------------------------------------------- Summary of changes: src/Text.cpp | 2 +- src/insets/InsetCaption.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) hooks/post-receive -- The LyX Source Repository
