Re: Commit: Lots of progress on edittable headers and footers.


Subject: Re: Commit: Lots of progress on edittable headers and footers.
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sat Mar 10 2001 - 09:18:29 CST


On Sat, 10 Mar 2001, Jesper Skov wrote:

> It looks like this is because the Runs are not assigned proper
> lines. fp_Run.cpp:772 is the piece of code causing problems. If I
> enter something like this in the footer (enter "test" + return):
>
> 1test<eop>
> <fmtmrk><eop>
>
> the code, when finding the coords for the EOP, will look for a
> previous run on the same line and get Y pos from that (to reflect
> proper ascent/descent). And it seems that the last EOP has the same
> m_pLine as the text run on the previous line.
>

This is a good hint. It gives me a lot to play with.
 
>
> But I'm not sure. It's a total PITA to debug since the Runs in charge
> of the actual layout/rendering are not the runs associated with the
> top-level document root - so __dump() does not print out the relevant
> structures.
>
> And since GDB for some reason totally cores when I try to print the
> relevant structures I don't feel like poking more at it. Sorry.
>

Never mind. This helps a lot I think. I've nailed another couple of
Header/Footer bugs today. I'll use this hint to go after this bug
tomorrow.

Cheers

Martin



This archive was generated by hypermail 2b25 : Sat Mar 10 2001 - 09:18:55 CST