fixed the issue reported by sander (gaps at left columns button due to round-offs)
authorAnselm R.Garbe <arg@10ksloc.org>
Thu, 10 Aug 2006 12:33:44 +0200
changeset 240 87c5d5176e17
parent 239 e5390f8e06b9
child 241 16f956d8f899
fixed the issue reported by sander (gaps at left columns button due to round-offs)
tag.c
--- a/tag.c	Thu Aug 10 11:26:32 2006 +0200
+++ b/tag.c	Thu Aug 10 12:33:44 2006 +0200
@@ -106,7 +106,10 @@
 				c->x = sx + mw;
 				c->y = sy + (i - 1) * h + bh;
 				c->w = w - 2;
-				c->h = h - 2;
+				if(i + 1 == n)
+					c->h = sh - c->y - 2;
+				else
+					c->h = h - 2;
 			}
 			else { /* fallback if h < bh */
 				c->x = sx + mw;