On Mon, Aug 25, 2003 at 12:33:17AM +0300, Martin Vermeer wrote: > On Sat, Aug 23, 2003 at 02:14:59AM +0300, Martin Vermeer spake thusly: > > > OK. I made the attached, sanitized patch after you committed your last > > changes. > > > > The inset margin bug is still there, but I have ideas on that. The > > current code is pretty convoluted, esp the cursor positioning. > > > > As this meshes well with what you're doing, feel free to test and > > check it in as I will be 'patchily on-line' the coming week... if > > you're happy with it, that is. > > Forget this patch, it contains a bug (removed a littel too much :-( ). > Corrected in the attached, with also contains a first attempt at > solving the inset right margin problem in a non-hackish way. > > It depends on adding a member to LyXText describing the extra indent > caused to it by the inset(s) it is inside of; this value is > recursively determined on construction. > > I am having problems with this recursion: how does a LyXText inside an > inset get hold of the LyXText that directly contains the inset (and its > members)? Studying the code without much enlightenment.
The plan is not to have such information at all and rather pass down all required quantities as member of the MetricsInfo struct in the first drawing phase. Andre'