mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
back out tall table speedup. It broke column width setting.
I have no idea why. calculate_dimensions_of_cells must surely be called on the SET_PWIDTH, but for some reason it doesn't resize the column despite resizing the cell widths. This is the sort of "fun" that changing anything in the table code incurs. It sucks mightily :( git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7099 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5cf0161210
commit
92782a861e
@ -1,3 +1,7 @@
|
||||
2003-06-04 John Levon <levon@movementarian.org>
|
||||
|
||||
* insettabular.C: back out tall table speed up. It was broken
|
||||
|
||||
2003-06-03 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* graphicinset.[Ch]: new files. Clean up the InsetGraphics::Cache
|
||||
|
@ -313,10 +313,16 @@ void InsetTabular::draw(PainterInfo & pi, int x, int y) const
|
||||
++cell;
|
||||
}
|
||||
|
||||
// Would be nice, but for some completely unfathomable reason,
|
||||
// on a col resize to a new fixed width, even though the insettexts
|
||||
// are resized, the cell isn't, but drawing all cells in a tall table
|
||||
// has the desired effect somehow. Complete dark magic.
|
||||
#if 0
|
||||
// avoiding drawing the rest of a long table is
|
||||
// a pretty big speedup
|
||||
if (y > bv->workHeight())
|
||||
break;
|
||||
#endif
|
||||
|
||||
y += tabular->GetDescentOfRow(i) +
|
||||
tabular->GetAscentOfRow(i + 1) +
|
||||
|
Loading…
Reference in New Issue
Block a user