From: Tomas Frydrych (tomas@frydrych.uklinux.net)
Date: Sat Jul 27 2002 - 10:53:04 EDT
I have identified the cause of the reverse loading bug; basically the
fl_BlockConstructor adds an endOfParagaraph marker, which in
turns requires an empty line to be created. This happens inside
getNewContainerLocal(), where the line is also added to vertical
container (i.e., column). However, since at this stage the
construction process is not complete, the block is not linked with
other contianers in the document and the code in
getNewContainerLocal() will add the new line at the top of the
column.
I am not sure what is the best way to fix this. I fixed
getNewContainerLocal() so that it does not try to insert line for
blocks that have no previous and no next and added a new method
fl_BlockLayout::insertFirstLineIntoVerticalContainer() which is called
from fl_ContainerLayout after the creation and linking of the block.
I am not sure this solution is sufficiently robust, but it works for now.
files: fl_BlockLayout.cpp/h, fl_ContainerLayout.cpp, fp_Run.cpp
Tomas
This archive was generated by hypermail 2.1.4 : Sat Jul 27 2002 - 11:01:46 EDT