Simplify InsetRef::forToc().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36978 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-12-20 22:47:09 +00:00
parent 8bfcb23ef2
commit a2111a1c50

View File

@ -239,9 +239,9 @@ void InsetRef::toString(odocstream & os) const
void InsetRef::forToc(docstring & os, size_t) const
{
odocstringstream ods;
plaintext(ods, OutputParams(0));
os += ods.str();
// There's no need for details in the TOC, and a long label
// will just get in the way.
os += '#';
}