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).
+ */
pm.dim().des += 20;
}
ParagraphList const & pars = text_->paragraphs();
// if the row is too large, try to cut at last separator. In case
// of success, reset indication that the row was broken abruptly.
if (row.shortenIfNeeded(body_pos, width))
- row.right_boundary(false);
+ row.right_boundary(!row.empty() && row.back().endpos == row.endpos());
// make sure that the RTL elements are in reverse ordering
row.reverseRTL(is_rtl);