]> git.lyx.org Git - features.git/commitdiff
Fixup 283ac91a: Forgotten test for null pointer
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 3 Apr 2019 10:13:13 +0000 (12:13 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:23 +0000 (15:48 +0200)
src/TextMetrics.cpp

index 6ce580c60cecc78faf3f97e7f0cde89ff51fc509..d0b90713adf9731498bb2b517b5efd8b978627e4 100644 (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;