Fix broken expose callback in pspp-sheet-view
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 31 May 2013 17:42:34 +0000 (19:42 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 31 May 2013 17:45:00 +0000 (19:45 +0200)
src/ui/gui/pspp-sheet-view.c

index 3548cd79eb0581d878fdda26c81018738a3fe3b1..7f9a12258466dff3677f24bafdc8c219787aabbd 100644 (file)
@@ -4476,7 +4476,10 @@ pspp_sheet_view_draw (GtkWidget      *widget,
       gboolean retval;
       GList *tmp_list;
 
+      cairo_save (cr);
+      cairo_translate (cr, 0, gdk_window_get_height (tree_view->priv->header_window));
       retval = pspp_sheet_view_bin_expose (widget, cr);
+      cairo_restore (cr);
 
       /* We can't just chain up to Container::expose as it will try to send the
        * event to the headers, so we handle propagating it to our children