diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2024-07-14 11:40:20 +0200 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2024-07-17 01:32:19 +0100 |
commit | 7edb97a4acfee0cbd2beda84dd2b8e1f3dbd7dc0 (patch) | |
tree | ea883d7e7d926d9d10ee9dc1775da52470942309 /drw.c | |
parent | 608ab76d6699b102e3912b21c13d54b8e590ef87 (diff) |
Diffstat (limited to 'drw.c')
-rw-r--r-- | drw.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -258,10 +258,8 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp usedfont = drw->fonts; if (!ellipsis_width && render) ellipsis_width = drw_fontset_getwidth(drw, "..."); - if (!invalid_width) { - invalid_width = -1; /* stop infinite recursion */ + if (!invalid_width && render) invalid_width = drw_fontset_getwidth(drw, invalid); - } while (1) { ew = ellipsis_len = utf8err = utf8charlen = utf8strlen = 0; utf8str = text; |