diff options
-rw-r--r-- | drw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -267,7 +267,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp | |||
267 | enum { nomatches_len = 64 }; | 267 | enum { nomatches_len = 64 }; |
268 | static struct { long codepoint[nomatches_len]; unsigned int idx; } nomatches; | 268 | static struct { long codepoint[nomatches_len]; unsigned int idx; } nomatches; |
269 | 269 | ||
270 | if (!drw || (render && !drw->scheme) || !text || !drw->fonts) | 270 | if (!drw || (render && (!drw->scheme || !w)) || !text || !drw->fonts) |
271 | return 0; | 271 | return 0; |
272 | 272 | ||
273 | if (!render) { | 273 | if (!render) { |