summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-09-16 15:16:14 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-09-16 15:16:14 (GMT)
commitbfadf0a296614700bb876cfcf6da56d8bad61e99 (patch)
tree2879d6a02df64ef6056584ee289b37afcc140624
parentd3a2a48d8d9a19d934337117c18de3084225b7eb (diff)
downloadtk-tip_166.zip
tk-tip_166.tar.gz
tk-tip_166.tar.bz2
Fix order of tests in tkImgListFormat.c. This was discovered when analyzing [829925ffff]: image put errors on {} colortip_166
-rw-r--r--generic/tkImgListFormat.c2
1 files changed, 1 insertions, 1 deletions
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
*/