From: Georg Baum Date: Sun, 20 Sep 2015 18:32:45 +0000 (+0200) Subject: Fix wrong label found by cppcheck X-Git-Tag: 2.2.0alpha1~303 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7450d24eec34346bac4eebe09973b8b6c182c1c1;p=features.git Fix wrong label found by cppcheck It was not intended to ignore the return value of expandParagraphLabel(). --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 84e609bb60..5bbc16aaed 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1997,7 +1997,7 @@ docstring Paragraph::expandParagraphLabel(Layout const & layout, docstring parent(fmt, i + 1, j - i - 1); docstring label = from_ascii("??"); if (tclass.hasLayout(parent)) - docstring label = expandParagraphLabel(tclass[parent], bparams, + label = expandParagraphLabel(tclass[parent], bparams, process_appendix); fmt = docstring(fmt, 0, i) + label + docstring(fmt, j + 1, docstring::npos);