On 03-Jul-2001 Lars Gullik Bjønnes wrote:
> @@ -821,13 +837,15 @@ void LyXText::redoParagraphs(BufferView
> Paragraph const * endpar) const
> {
> Row * tmprow2;
> - Paragraph * tmppar = 0, * first_phys_par = 0;
> + Paragraph * tmppar = 0;
> + Paragraph * first_phys_par = 0;
>
> Row * tmprow = cur.row();
>
> int y = cur.y() - tmprow->baseline();
> -
> - if (!tmprow->previous()){
> +
> +#if 0
> + if (!tmprow->previous()) {
> first_phys_par = firstParagraph(); // a trick/hack for UNDO
> } else {
> first_phys_par = tmprow->par();
> @@ -844,7 +862,10 @@ void LyXText::redoParagraphs(BufferView
> y -= tmprow->height();
> }
> }
> -
> +#else
> + first_phys_par = tmprow->par();
> +#endif
> +
> // we can set the refreshing parameters now
> status = LyXText::NEED_MORE_REFRESH;
> refresh_y = y;
>
Well IMO this is not the same:
BEFORE:
if (!tmprow->previous()){
first_phys_par = firstParagraph(); // a trick/hack for UNDO
} else {
first_phys_par = tmprow->par();
}
AFTER applying your patch:
first_phys_par = tmprow->par();
This doesn't seem right to me, does it to you?
Jürgen
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Drop that pickle!