Redraw affected areas after de-selecting a region
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 27 Jul 2009 09:29:43 +0000 (11:29 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 27 Jul 2009 09:29:43 +0000 (11:29 +0200)
lib/gtk-contrib/psppire-sheet.c

index 7e36381e0ba1ab9f64774364f795016a5a174233..a3bb1c8fcb96ea9e4dfa02a39a8a08d6cc12480c 100644 (file)
@@ -3056,7 +3056,13 @@ psppire_sheet_button_press (GtkWidget *widget, GdkEventButton *event)
            }
          else
            {
+             GdkRectangle area;
              sheet->select_status = PSPPIRE_SHEET_NORMAL;
+
+             rectangle_from_range (sheet, &sheet->range, &area);
+             area.x++;
+             area.y++;
+             gdk_window_invalidate_rect (sheet->sheet_window, &area, FALSE);     
            }
        }
     }