]> git.lyx.org Git - features.git/commitdiff
Fix float label prefix (bug #8536)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 4 Feb 2013 07:38:50 +0000 (08:38 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 4 Feb 2013 07:41:46 +0000 (08:41 +0100)
src/Text.cpp
src/insets/InsetCaption.h

index 683a8582ac24ecb68f1e4e8f4e16d7df095d4a6b..932a3929d79bb4da2965b8cad4e1d8d671d9abe5 100644 (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);
index fd512e187cd53ac4c901626770c3dcd4c28045b8..d792d77640f4cb8b23602f61d3599a02bd7b67d1 100644 (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;