diff options
-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; |