mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
7c38391754
commit
4068d50058
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user