Try another way to signal a false positive to coverity

This commit is contained in:
Jean-Marc Lasgouttes 2017-03-01 17:44:02 +01:00
parent 5453e00cfa
commit ae6e6b3e47

View File

@ -482,11 +482,11 @@ bool TextMetrics::redoParagraph(pit_type const pit)
if (text_->isMainText()) {
if (pit == 0) {
pm.rows().front().dimension().asc += 20;
/* coverity[copy_paste_error]: coverity thinks that we
* should update pm.dim().asc below, but all the rows
* heights are actually counted as part of the paragraph metric
* descent see loop above).
/* coverity thinks that we should update pm.dim().asc
* below, but all the rows heights are actually counted as
* part of the paragraph metric descent see loop above).
*/
// coverity[copy_paste_error]
pm.dim().des += 20;
}
ParagraphList const & pars = text_->paragraphs();