2001-08-10 Juergen Vigna <jug@sad.it>
2001-08-10 Juergen Vigna <jug@sad.it>
+ * insettabular.C (calculate_dimensions_of_cells): let's try to call
+ update only for fixed with cells.
+
* insettext.C (update): comment this out as it seems first wrong
and second not needed anymore!
* insettext.C (update): comment this out as it seems first wrong
and second not needed anymore!
+ (some functions): call reinitLyXText() only in update() in all other
+ positions set only need_update = INIT.
2001-08-08 Juergen Vigna <jug@sad.it>
2001-08-08 Juergen Vigna <jug@sad.it>
continue;
++cell;
inset = tabular->GetCellInset(cell);
continue;
++cell;
inset = tabular->GetCellInset(cell);
+ 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));
inset->update(bv, font, false);
maxAsc = max(maxAsc, inset->ascent(bv, font));
maxDesc = max(maxDesc, inset->descent(bv, font));
par = tmp;
}
par = new Paragraph;
par = tmp;
}
par = new Paragraph;
}
in_update = true;
if (reinit || need_update == INIT) {
}
in_update = true;
if (reinit || need_update == INIT) {
reinitLyXText();
if (owner())
owner()->update(bv, font, true);
reinitLyXText();
if (owner())
owner()->update(bv, font, true);
np = np->next();
np->setInsetOwner(this);
}
np = np->next();
np->setInsetOwner(this);
}
{
if (flag != autoBreakRows) {
autoBreakRows = flag;
{
if (flag != autoBreakRows) {
autoBreakRows = flag;
if (!flag)
removeNewlines();
if (!flag)
removeNewlines();