]> git.lyx.org Git - features.git/blobdiff - src/insets/insettabular.C
Some more of optimizations.
[features.git] / src / insets / insettabular.C
index 2a4cca31209118e9ffd9b1246c1a15aba7dc4d43..d0ee23b7c156eee2b5463a8510ee31c7920e31ce 100644 (file)
@@ -1196,7 +1196,7 @@ bool InsetTabular::calculate_dimensions_of_cells(BufferView * bv,
                                continue;
                        ++cell;
                        inset = tabular->GetCellInset(cell);
-                       if (!reinit)
+                       if (!reinit && !tabular->GetPWidth(cell).empty())
                                inset->update(bv, font, false);
                        maxAsc = max(maxAsc, inset->ascent(bv, font));
                        maxDesc = max(maxDesc, inset->descent(bv, font));