]> git.lyx.org Git - features.git/commitdiff
Fix List of Figures and Tables in the Outliner and Navigate menu. We should really...
authorAbdelrazak Younes <younes@lyx.org>
Mon, 11 Feb 2008 13:23:42 +0000 (13:23 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 11 Feb 2008 13:23:42 +0000 (13:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22943 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCaption.cpp
src/insets/InsetCaption.h

index 5df5e27359c30e16b5e92cdce759532c6e5cba0c..aec5d2827ec3b0aeb8ef1a6fcae2388a03252ece 100644 (file)
@@ -275,6 +275,8 @@ void InsetCaption::updateLabels(Buffer const & buf, ParIterator const & it)
        TextClass const & tclass = buf.params().getTextClass();
        Counters & cnts = tclass.counters();
        string const & type = cnts.current_float();
+       // Memorize type for addToToc().
+       type_ = type;
        if (type.empty())
                full_label_ = buf.B_("Senseless!!! ");
        else {
index b2fbac5395f48b8060fbc564466331783eac4b79..f98c6b26e5aae785a0cf2f6ea5881f62e017f2f1 100644 (file)
@@ -76,8 +76,6 @@ public:
        ///
        std::string const & type() const { return type_; }
        ///
-       void setType(std::string const & type) { type_ = type; }
-       ///
        void setCustomLabel(docstring const & label);
        ///
        void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;