On Sat, Dec 31, 2005 at 02:47:21PM +0100, Michael Gerz wrote:
> John C. McCabe-Dansted wrote:
> 
> >On Sunday 01 January 2006 01:15, Michael Gerz wrote:
> > 
> >
> >>SCREEN IS NOT UPDATED AFTER DELETION
> >>
> >>1. New doc
> >>2. Enter "hello"
> >>3. Activate change tracking
> >>4. Place cursor in front of "hello"
> >>5. Press delete key
> >>=>  The character is deleted  internally but the screen is not updated
> >>(row signature problem?)
> >>
> >>SCREEN IS NOT UPDATED AFTER BACKSPACE
> >>
> >>dito
> >>   
> >>
> >
> >The other bugs occur on my system as well.
> > 
> >
> I guess this bug has been "introduced" yesterday. Martin, this looks 
> like a row signature bug.

Right! It is precisely that.

Try the attached, works for me.

- Martin
 
Index: rowpainter.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/rowpainter.C,v
retrieving revision 1.161
diff -u -p -r1.161 rowpainter.C
--- rowpainter.C        30 Dec 2005 19:02:52 -0000      1.161
+++ rowpainter.C        31 Dec 2005 17:07:55 -0000
@@ -774,8 +774,9 @@ void paintPar
                // If selection is on, the current row signature differs from
                // from cache, or cursor is inside an inset _on this row_, 
                // then paint the row
-               if (repaintAll || par.rowSignature()[rowno] != row_sig 
-                          || cur_in_inset_in_row) {
+               if (repaintAll || par.rowSignature()[rowno] != row_sig
+                           || par.isChangeEdited(rit->pos(), rit->endpos())
+                           || cur_in_inset_in_row) {
                        // Add to row signature cache
                        par.rowSignature()[rowno] = row_sig;
 

Attachment: pgpsAaPajlqqY.pgp
Description: PGP signature

Reply via email to