Fixup 283ac91a: Forgotten test for null pointer

This commit is contained in:
Jean-Marc Lasgouttes 2019-04-03 12:13:13 +02:00
parent 5e2b24c2a9
commit 051da4ba25

View File

@ -992,7 +992,7 @@ bool TextMetrics::breakRow(Row & row, int const right_margin) const
// - a display inset followed by a end label.
need_new_row =
par.isNewline(i)
|| (inset->display() && i + 1 == end
|| (inset && inset->display() && i + 1 == end
&& text_->getEndLabel(row.pit()) != END_LABEL_NO_LABEL);
++i;
break;