compute textlen also

This commit is contained in:
Julien Danjou 2007-12-26 22:00:43 +01:00
parent 3ec0618472
commit e77fe9c2a0
1 changed files with 1 additions and 1 deletions

2
draw.c
View File

@ -261,7 +261,7 @@ textwidth_primitive(Display *display, XftFont *font, char *text)
unsigned short
textwidth(DrawCtx *ctx, XftFont *font, char *text)
{
if (!text)
if (!a_strlen(text))
return 0;
return textwidth_primitive(ctx->display, font, text);
}