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;