From 9ed83f500d1ca3ece9d283b3c0eea519eb702bd4 Mon Sep 17 00:00:00 2001 From: fvogel Date: Thu, 16 May 2024 20:42:32 +0000 Subject: Reduce confusion by using the adequate variable name in GetTkFontAttributes(). --- unix/tkUnixRFont.c | 4 ++-- 1 file 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; -- cgit v0.12