diff options
author | fvogel <fvogelnew1@free.fr> | 2024-01-21 21:14:18 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-01-21 21:14:18 (GMT) |
commit | 7030cf99f16c6603e86afc939f24a1e1ae5e49bf (patch) | |
tree | 8fd70493a5f0b5d45c5056f229f480f7b67ea1b4 | |
parent | 10c4db3640ed279cc5c507569efdfd2358e515f6 (diff) | |
download | tk-7030cf99f16c6603e86afc939f24a1e1ae5e49bf.zip tk-7030cf99f16c6603e86afc939f24a1e1ae5e49bf.tar.gz tk-7030cf99f16c6603e86afc939f24a1e1ae5e49bf.tar.bz2 |
Fix [8da7af2f8e]: slow widget creation if default font is not used
-rw-r--r-- | generic/tkFont.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c index 737d04c..cef6f86 100644 --- a/generic/tkFont.c +++ b/generic/tkFont.c @@ -1326,6 +1326,7 @@ Tk_GetFontFromObj( FreeFontObj(objPtr); fontPtr = NULL; } else if (Tk_Screen(tkwin) == fontPtr->screen) { + fontPtr->resourceRefCount++; return (Tk_Font) fontPtr; } } |