changeset: 2607:982d88be94e3
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Mon May 17 12:29:18 2010 -0400
files: cmd/wmii/x11.c
description:
Ensure a positive label height. Closes issue #169.
diff -r a6aa02bc7a3b -r 982d88be94e3 cmd/wmii/x11.c
--- a/cmd/wmii/x11.c Mon May 17 12:22:42 2010 -0400
+++ b/cmd/wmii/x11.c Mon May 17 12:29:18 2010 -0400
@@ -800,7 +800,7 @@
uint
labelh(Font *font) {
- return font->height + font->descent + font->pad.min.y + font->pad.max.y;
+ return max(font->height + font->descent + font->pad.min.y + font->pad.max.y, 1);
}
/* Misc */
Received on Mon May 17 2010 - 16:29:32 UTC
This archive was generated by hypermail 2.2.0 : Mon May 17 2010 - 16:36:04 UTC