From 480f22c1380b92ea680bad6435bc072c6d06b8ea Mon Sep 17 00:00:00 2001 From: Matias Mutchinick Date: Mon, 27 Mar 2000 02:53:47 +0000 Subject: Removed extra code that computed bogus width. This was the actual source 2000-03-26 Matias Mutchinick * e-cell-toggle.c (etog_draw): Removed extra code that computed bogus width. This was the actual source of the problem with the miss-rendering feature. svn path=/trunk/; revision=2173 --- widgets/table/e-cell-toggle.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c index 1fdbcf40ca..ddca5509ab 100644 --- a/widgets/table/e-cell-toggle.c +++ b/widgets/table/e-cell-toggle.c @@ -125,7 +125,6 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, height = art->height; } - width = y2 - y1; if (image->art_pixbuf->has_alpha){ GdkColor background; @@ -138,14 +137,14 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, background.green = 255; background.blue = 255; - for (iy = 0; iy <= art->height; iy++){ + for (iy = 0; iy < art->height; iy++){ unsigned char *dest; unsigned char *src; dest = buffer + (iy * art->rowstride); src = art->pixels + (iy * art->rowstride); - for (ix = 0; ix <= art->width; ix++){ + for (ix = 0; ix < art->width; ix++){ alpha = src [3]; if (alpha == 0){ *dest++ = background.red; -- cgit v1.2.3