X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.cpp;h=5bdd4c2755f98f286ff6b5ad31cc1dd073ed01ed;hb=7f17f13bfc2ad4e7cdd8ecfce23374e2b3d0c646;hp=036af6327dcec4e139ef52e8650ab3ae029d50e8;hpb=81759710410a28276d38966dd82fdfdc35d6431a;p=lyx.git diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 036af6327d..5bdd4c2755 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -259,6 +259,9 @@ bool TextMetrics::redoParagraph(pit_type const pit) pm.dim().des += dim.height(); } while (first < par.size()); + if (row_index < pm.rows().size()) + pm.rows().resize(row_index); + // Make sure that if a par ends in newline, there is one more row // under it if (first > 0 && par.isNewline(first - 1)) {