On Fri, Nov 03, 2006 at 12:57:01AM +0100, Abdelrazak Younes wrote:

...

> +
> +     //FIXME: Use case: Two windows share the same buffer.
> +     // The first window is resize. This modify the inner Buffer
> +     // structure because Paragraph has a notion of line break and
> +     // thus line width (this is very bad!).
> +     // When switching to the other window which does not have the
> +     // same size, LyX crashes because the line break is not adapted
> +     // the this BufferView width.
> +     // The following line fix the crash by resizing the BufferView
> +     // on a focusInEvent(). That is not a good fix but it is a fix
> +     // nevertheless. The bad side effect is that when the two
> +     // BufferViews show the same portion of the Buffer, the second
> +     // BufferView will show the same line breaks as the first one;
> +     // even though those line breaks are not adapted to the second
> +     // BufferView width... such is life!
> +     resizeBufferView();
>  }

This kind of in-code documentation should be done a lot more!

- Martin 

Attachment: pgpUUkw31PUOJ.pgp
Description: PGP signature

Reply via email to