On Tue, Jul 08, 2003 at 01:54:41PM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Tue, Jul 08, 2003 at 01:37:15PM +0200, Juergen Spitzmueller wrote: > | > N.B: Undoing break-paragraph crashes LyX. This is not related to my patch > | > though. > | > | The cache part of the LyXText structure is still broken after an undo... > > Explain please.
I believe the contents of the main paragraph list is ok after the undo, it is 'just' the RowList that is broken after the main paragraph list is changed structurally (undoing a paragraph break is such a beast). [And this is mainly because the rows contain back pointers to the paragraph] Now the rowlist is not correctly rebuild, but we call textRedoParagraphs. This tries to extract cursor and paragraph information from the row. *boom* Note that I think that the logic in the whole area is severely broken: The primary data is the paragraph content, the row cache is 'just a helper'... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)