]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Get package things working with modules prior to UI patch.
[lyx.git] / src / TextMetrics.cpp
index 036af6327dcec4e139ef52e8650ab3ae029d50e8..5bdd4c2755f98f286ff6b5ad31cc1dd073ed01ed 100644 (file)
@@ -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)) {