mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
Ensure a positive label height. Closes issue #169.
This commit is contained in:
parent
3898849361
commit
38ae2bcc17
@ -800,7 +800,7 @@ textwidth(Font *font, char *text) {
|
||||
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user