mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
1d14f0be27
commit
9af32c1740
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user