Change minimum value in forToc().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40624 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2012-01-16 14:48:35 +00:00
parent 1d14f0be27
commit 9af32c1740

View File

@ -1970,7 +1970,7 @@ docstring Text::asString(pit_type beg, pit_type end, int options) const
void Text::forToc(docstring & os, size_t maxlen, bool shorten) const
{
LASSERT(maxlen > 10, maxlen = 30);
LASSERT(maxlen >= 8, maxlen = 30);
for (size_t i = 0; i != pars_.size() && os.length() < maxlen; ++i)
pars_[i].forToc(os, maxlen);
if (shorten && os.length() >= maxlen)