diff options
author | fvogel <fvogelnew1@free.fr> | 2024-05-16 20:42:32 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-05-16 20:42:32 (GMT) |
commit | 9ed83f500d1ca3ece9d283b3c0eea519eb702bd4 (patch) | |
tree | baa337557b9d40a915a990fe0cf8d6e4efbd4ed7 | |
parent | 9d8fd009e8a34652cb49be13d2dc96dda78bd4d5 (diff) | |
download | tk-9ed83f500d1ca3ece9d283b3c0eea519eb702bd4.zip tk-9ed83f500d1ca3ece9d283b3c0eea519eb702bd4.tar.gz tk-9ed83f500d1ca3ece9d283b3c0eea519eb702bd4.tar.bz2 |
Reduce confusion by using the adequate variable name in GetTkFontAttributes().
-rw-r--r-- | unix/tkUnixRFont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index f3ab5c9..1103a38 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -189,8 +189,8 @@ GetTkFontAttributes( (void) XftPatternGetString(ftFont->pattern, XFT_FAMILY, 0, familyPtr); if (XftPatternGetDouble(ftFont->pattern, XFT_PIXEL_SIZE, 0, - &ptsize) == XftResultMatch) { - size = -ptsize; + &pxsize) == XftResultMatch) { + size = -pxsize; } else if (XftPatternGetDouble(ftFont->pattern, XFT_SIZE, 0, &ptsize) == XftResultMatch) { size = ptsize; |