Skip to content

Commit

Permalink
Fix [8da7af2f8e]: slow widget creation if default font is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
fvogelnew1 committed Jan 21, 2024
1 parent 10c4db3 commit 7030cf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generic/tkFont.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,7 @@ Tk_GetFontFromObj(
FreeFontObj(objPtr);
fontPtr = NULL;
} else if (Tk_Screen(tkwin) == fontPtr->screen) {
fontPtr->resourceRefCount++;
return (Tk_Font) fontPtr;
}
}
Expand Down

0 comments on commit 7030cf9

Please sign in to comment.