Fix wrong label found by cppcheck

It was not intended to ignore the return value of expandParagraphLabel().
This commit is contained in:
Georg Baum 2015-09-20 20:32:45 +02:00
parent 1ad4d9e657
commit 7450d24eec

View File

@ -1997,7 +1997,7 @@ docstring Paragraph::expandParagraphLabel(Layout const & layout,
docstring parent(fmt, i + 1, j - i - 1); docstring parent(fmt, i + 1, j - i - 1);
docstring label = from_ascii("??"); docstring label = from_ascii("??");
if (tclass.hasLayout(parent)) if (tclass.hasLayout(parent))
docstring label = expandParagraphLabel(tclass[parent], bparams, label = expandParagraphLabel(tclass[parent], bparams,
process_appendix); process_appendix);
fmt = docstring(fmt, 0, i) + label fmt = docstring(fmt, 0, i) + label
+ docstring(fmt, j + 1, docstring::npos); + docstring(fmt, j + 1, docstring::npos);