From: Abdelrazak Younes Date: Mon, 11 Feb 2008 13:23:42 +0000 (+0000) Subject: Fix List of Figures and Tables in the Outliner and Navigate menu. We should really... X-Git-Tag: 1.6.10~6321 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4068d50058ef3c0c8f8d9f06ccab60f64a9cc8eb;p=lyx.git Fix List of Figures and Tables in the Outliner and Navigate menu. We should really merge updateLabels() and addToToc() someday... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22943 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index 5df5e27359..aec5d2827e 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -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 { diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index b2fbac5395..f98c6b26e5 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -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;