summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tkFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 2e2a5b9..a4e47b1 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -3938,7 +3938,7 @@ TkFontParseXLFD(
faPtr->size = atof(field[XLFD_PIXEL_SIZE] + 1);
} else if (Tcl_GetInt(NULL, field[XLFD_PIXEL_SIZE],
- &i) != TCL_OK) {
+ &i) == TCL_OK) {
faPtr->size = (double)i;
return TCL_ERROR;
}