From c7ad1933889fef8737e15aecd2fee90e8d343293 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 13 Mar 1998 02:29:39 +0000 Subject: [PATCH] 1998-03-12 Federico Mena Quintero * gmc-chargrid.c (gmc_char_grid_draw): Someone teach me how to subtract. Fixed a stupid offsetting bug. --- gnome/gmc-chargrid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnome/gmc-chargrid.c b/gnome/gmc-chargrid.c index 08a0da2db..111ee537d 100644 --- a/gnome/gmc-chargrid.c +++ b/gnome/gmc-chargrid.c @@ -378,8 +378,8 @@ gmc_char_grid_draw (GtkWidget *widget, GdkRectangle *area) /* Offset the area because the window does not fill thea allocation */ - area->x -= widget->allocation.x + (widget->allocation.width - cgrid->char_width * cgrid->width) / 2; - area->y -= widget->allocation.y + (widget->allocation.height - cgrid->char_height * cgrid->height) / 2; + area->x -= (widget->allocation.width - cgrid->char_width * cgrid->width) / 2; + area->y -= (widget->allocation.height - cgrid->char_height * cgrid->height) / 2; w_area.x = 0; w_area.y = 0;