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
This commit is contained in:
Abdelrazak Younes 2008-02-11 13:23:42 +00:00
parent 7c38391754
commit 4068d50058
2 changed files with 2 additions and 2 deletions

View File

@ -275,6 +275,8 @@ void InsetCaption::updateLabels(Buffer const & buf, ParIterator const & it)
TextClass const & tclass = buf.params().getTextClass(); TextClass const & tclass = buf.params().getTextClass();
Counters & cnts = tclass.counters(); Counters & cnts = tclass.counters();
string const & type = cnts.current_float(); string const & type = cnts.current_float();
// Memorize type for addToToc().
type_ = type;
if (type.empty()) if (type.empty())
full_label_ = buf.B_("Senseless!!! "); full_label_ = buf.B_("Senseless!!! ");
else { else {

View File

@ -76,8 +76,6 @@ public:
/// ///
std::string const & type() const { return type_; } std::string const & type() const { return type_; }
/// ///
void setType(std::string const & type) { type_ = type; }
///
void setCustomLabel(docstring const & label); void setCustomLabel(docstring const & label);
/// ///
void addToToc(TocList &, Buffer const &, ParConstIterator const &) const; void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;