Author: vfr
Date: Thu Jan  6 02:12:38 2011
New Revision: 37123
URL: http://www.lyx.org/trac/changeset/37123

Log:
Fix bug #7212: Paragraph::forToc has to include the labelString.

Modified:
   lyx-devel/trunk/src/Paragraph.cpp

Modified: lyx-devel/trunk/src/Paragraph.cpp
==============================================================================
--- lyx-devel/trunk/src/Paragraph.cpp   Thu Jan  6 01:59:15 2011        (r37122)
+++ lyx-devel/trunk/src/Paragraph.cpp   Thu Jan  6 02:12:38 2011        (r37123)
@@ -2961,6 +2961,8 @@
 
 void Paragraph::forToc(docstring & os, size_t maxlen) const
 {
+       if (!d->params_.labelString().empty())
+               os += d->params_.labelString() + ' ';
        for (pos_type i = 0; i < size() && os.length() < maxlen; ++i) {
                if (isDeleted(i))
                        continue;

Reply via email to