changeset 240:87c5d5176e17

fixed the issue reported by sander (gaps at left columns button due to round-offs)
author Anselm R.Garbe <arg@10ksloc.org>
date Thu, 10 Aug 2006 12:33:44 +0200 (2006-08-10)
parents e5390f8e06b9
children 16f956d8f899
files tag.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;