summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-20 18:51:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-20 18:51:18 (GMT)
commit090dff7eae2a557c2293d61f6a6dd7fce5da00c7 (patch)
tree1b169caa6c9b8bb58ea22a23a2d8cbf3c1853402 /generic
parent93222e57379094d593fc30ffd12f32099789a060 (diff)
downloadtk-090dff7eae2a557c2293d61f6a6dd7fce5da00c7.zip
tk-090dff7eae2a557c2293d61f6a6dd7fce5da00c7.tar.gz
tk-090dff7eae2a557c2293d61f6a6dd7fce5da00c7.tar.bz2
Bug-fix [434d294df] continuation: fix logic error detected by Christian Werner. Thanks!
Diffstat (limited to 'generic')
-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;
}