From 9af32c174043fa6c34bdad33312d52ea4d2d0427 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 16 Jan 2012 14:48:35 +0000 Subject: [PATCH] Change minimum value in forToc(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40624 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text.cpp b/src/Text.cpp index d3a122660d..5f79e38a99 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -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) -- 2.39.5