comparison tag.c @ 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
parents 655e38416bb8
children d6fd632d861c
comparison
equal deleted inserted replaced
239:e5390f8e06b9 240:87c5d5176e17
104 } 104 }
105 else if(h > bh) { 105 else if(h > bh) {
106 c->x = sx + mw; 106 c->x = sx + mw;
107 c->y = sy + (i - 1) * h + bh; 107 c->y = sy + (i - 1) * h + bh;
108 c->w = w - 2; 108 c->w = w - 2;
109 c->h = h - 2; 109 if(i + 1 == n)
110 c->h = sh - c->y - 2;
111 else
112 c->h = h - 2;
110 } 113 }
111 else { /* fallback if h < bh */ 114 else { /* fallback if h < bh */
112 c->x = sx + mw; 115 c->x = sx + mw;
113 c->y = sy + bh; 116 c->y = sy + bh;
114 c->w = w - 2; 117 c->w = w - 2;