]> git.lyx.org Git - features.git/commitdiff
Simplify InsetRef::forToc().
authorRichard Heck <rgheck@comcast.net>
Mon, 20 Dec 2010 22:47:09 +0000 (22:47 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 20 Dec 2010 22:47:09 +0000 (22:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36978 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetRef.cpp

index 95097bed85780ad6bc5a00b3c4c21312d60ed586..41113a9a46ce75af13cdbaa899a403258dd61e11 100644 (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 += '#';
 }