mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
Some more of optimizations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2476 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ed04b53081
commit
7a058f4f03
@ -1,7 +1,12 @@
|
|||||||
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
|
* insettext.C (update): comment this out as it seems first wrong
|
||||||
and second not needed anymore!
|
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>
|
||||||
|
|
||||||
|
@ -1196,7 +1196,7 @@ bool InsetTabular::calculate_dimensions_of_cells(BufferView * bv,
|
|||||||
continue;
|
continue;
|
||||||
++cell;
|
++cell;
|
||||||
inset = tabular->GetCellInset(cell);
|
inset = tabular->GetCellInset(cell);
|
||||||
if (!reinit)
|
if (!reinit && !tabular->GetPWidth(cell).empty())
|
||||||
inset->update(bv, font, false);
|
inset->update(bv, font, false);
|
||||||
maxAsc = max(maxAsc, inset->ascent(bv, font));
|
maxAsc = max(maxAsc, inset->ascent(bv, font));
|
||||||
maxDesc = max(maxDesc, inset->descent(bv, font));
|
maxDesc = max(maxDesc, inset->descent(bv, font));
|
||||||
|
@ -202,7 +202,7 @@ void InsetText::clear()
|
|||||||
par = tmp;
|
par = tmp;
|
||||||
}
|
}
|
||||||
par = new Paragraph;
|
par = new Paragraph;
|
||||||
reinitLyXText(true);
|
need_update = INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -522,7 +522,7 @@ void InsetText::update(BufferView * bv, LyXFont const & font, bool reinit)
|
|||||||
}
|
}
|
||||||
in_update = true;
|
in_update = true;
|
||||||
if (reinit || need_update == INIT) {
|
if (reinit || need_update == INIT) {
|
||||||
need_update |= FULL;
|
need_update = FULL;
|
||||||
reinitLyXText();
|
reinitLyXText();
|
||||||
if (owner())
|
if (owner())
|
||||||
owner()->update(bv, font, true);
|
owner()->update(bv, font, true);
|
||||||
@ -1741,7 +1741,7 @@ void InsetText::setParagraphData(Paragraph * p)
|
|||||||
np = np->next();
|
np = np->next();
|
||||||
np->setInsetOwner(this);
|
np->setInsetOwner(this);
|
||||||
}
|
}
|
||||||
reinitLyXText(true);
|
need_update = INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1758,10 +1758,9 @@ void InsetText::setAutoBreakRows(bool flag)
|
|||||||
{
|
{
|
||||||
if (flag != autoBreakRows) {
|
if (flag != autoBreakRows) {
|
||||||
autoBreakRows = flag;
|
autoBreakRows = flag;
|
||||||
need_update = FULL;
|
|
||||||
if (!flag)
|
if (!flag)
|
||||||
removeNewlines();
|
removeNewlines();
|
||||||
reinitLyXText(true);
|
need_update = INIT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user