mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Do not truncate references in outline pane (bug 9312).
This commit is contained in:
parent
855449d563
commit
1f45e6527a
@ -189,7 +189,7 @@ void InsetLabel::addToToc(DocIterator const & cpit, bool output_active) const
|
||||
output_active));
|
||||
else
|
||||
toc.push_back(TocItem(ref_pit, 1,
|
||||
static_cast<InsetRef *>(it->first)->screenLabel(),
|
||||
static_cast<InsetRef *>(it->first)->getTOCString(),
|
||||
output_active));
|
||||
}
|
||||
}
|
||||
|
@ -378,4 +378,9 @@ string const & InsetRef::getName(int type)
|
||||
}
|
||||
|
||||
|
||||
docstring InsetRef::getTOCString() const
|
||||
{
|
||||
return tooltip_.empty() ? screen_label_ : tooltip_;
|
||||
}
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -45,6 +45,8 @@ public:
|
||||
docstring toolTip(BufferView const &, int, int) const
|
||||
{ return tooltip_; }
|
||||
///
|
||||
docstring getTOCString() const;
|
||||
///
|
||||
bool hasSettings() const { return true; }
|
||||
///
|
||||
InsetCode lyxCode() const { return REF_CODE; }
|
||||
|
Loading…
Reference in New Issue
Block a user