Do not truncate references in outline pane (bug 9312).

This commit is contained in:
Richard Heck 2014-10-30 18:39:58 -04:00
parent 855449d563
commit 1f45e6527a
3 changed files with 8 additions and 1 deletions

View File

@ -189,7 +189,7 @@ void InsetLabel::addToToc(DocIterator const & cpit, bool output_active) const
output_active)); output_active));
else else
toc.push_back(TocItem(ref_pit, 1, toc.push_back(TocItem(ref_pit, 1,
static_cast<InsetRef *>(it->first)->screenLabel(), static_cast<InsetRef *>(it->first)->getTOCString(),
output_active)); output_active));
} }
} }

View File

@ -378,4 +378,9 @@ string const & InsetRef::getName(int type)
} }
docstring InsetRef::getTOCString() const
{
return tooltip_.empty() ? screen_label_ : tooltip_;
}
} // namespace lyx } // namespace lyx

View File

@ -45,6 +45,8 @@ public:
docstring toolTip(BufferView const &, int, int) const docstring toolTip(BufferView const &, int, int) const
{ return tooltip_; } { return tooltip_; }
/// ///
docstring getTOCString() const;
///
bool hasSettings() const { return true; } bool hasSettings() const { return true; }
/// ///
InsetCode lyxCode() const { return REF_CODE; } InsetCode lyxCode() const { return REF_CODE; }