From bfadf0a296614700bb876cfcf6da56d8bad61e99 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sat, 16 Sep 2017 15:16:14 +0000 Subject: Fix order of tests in tkImgListFormat.c. This was discovered when analyzing [829925ffff]: image put errors on {} color --- generic/tkImgListFormat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tkImgListFormat.c b/generic/tkImgListFormat.c index 20f2c4e..90bd3f8 100644 --- a/generic/tkImgListFormat.c +++ b/generic/tkImgListFormat.c @@ -511,7 +511,7 @@ StringReadDef( != TCL_OK) { return TCL_ERROR; } - if (width <= 0 || height <= 0 || colCount == 0 || rowCount == 0) { + if (width <= 0 || height <= 0 || rowCount == 0 || colCount == 0) { /* * No changes with zero sized input or zero sized output region */ -- cgit v0.12