Juergen Vigna <[EMAIL PROTECTED]> writes:
| This seems to me very strange:
|
| first_phys_par = tmprow->par();
| // find the first row of the paragraph
| if (first_phys_par != tmprow->par())
|
| Well it seems Lars you didn't update this right when removing the
| NEW_INSET stuff. The test above can go IMO!
I belive that this untested patch should work:
Index: text2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v
retrieving revision 1.134
diff -u -p -r1.134 text2.C
--- text2.C 2001/06/28 10:25:15 1.134
+++ text2.C 2001/07/03 14:07:26
@@ -761,6 +761,8 @@ void LyXText::redoHeightOfParagraph(Buff
int y = cur.y() - tmprow->baseline();
setHeightOfRow(bview, tmprow);
+
+#if 0
Paragraph * first_phys_par = tmprow->par();
// find the first row of the paragraph
@@ -776,6 +778,7 @@ void LyXText::redoHeightOfParagraph(Buff
y -= tmprow->height();
setHeightOfRow(bview, tmprow);
}
+#endif
// we can set the refreshing parameters now
status = LyXText::NEED_MORE_REFRESH;
@@ -791,6 +794,8 @@ void LyXText::redoDrawingOfParagraph(Buf
int y = cur.y() - tmprow->baseline();
setHeightOfRow(bview, tmprow);
+
+#if 0
Paragraph * first_phys_par = tmprow->par();
// find the first row of the paragraph
@@ -803,7 +808,7 @@ void LyXText::redoDrawingOfParagraph(Buf
tmprow = tmprow->previous();
y -= tmprow->height();
}
-
+#endif
// we can set the refreshing parameters now
if (status == LyXText::UNCHANGED || y < refresh_y) {
refresh_y = y;
@@ -826,9 +831,12 @@ void LyXText::redoParagraphs(BufferView
Row * tmprow = cur.row();
int y = cur.y() - tmprow->baseline();
-
- if (!tmprow->previous()){
+
+#if 0
+ if (!tmprow->previous()) {
+#endif
first_phys_par = firstParagraph(); // a trick/hack for UNDO
+#if 0
} else {
first_phys_par = tmprow->par();
// find the first row of the paragraph
@@ -844,7 +852,8 @@ void LyXText::redoParagraphs(BufferView
y -= tmprow->height();
}
}
-
+#endif
+
// we can set the refreshing parameters now
status = LyXText::NEED_MORE_REFRESH;
refresh_y = y;
--
Lgb