summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-04 20:39:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-04 20:39:24 (GMT)
commit650424e84adec49580e1316c15c907a97d7563a6 (patch)
tree1d10dd2d03b821080d257593c6963dc7813ac581 /generic/tkImgPhoto.c
parentf8fd3e1a60ef4499c05373076fd5266b00f60c9d (diff)
downloadtk-650424e84adec49580e1316c15c907a97d7563a6.zip
tk-650424e84adec49580e1316c15c907a97d7563a6.tar.gz
tk-650424e84adec49580e1316c15c907a97d7563a6.tar.bz2
Fix [8227d46f9d]: imgPhoto test failures and [236dfa6057]: imgPNG-4.4 test failure, which were essentially the same bug: a wrongly placed #endif
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r--generic/tkImgPhoto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 249b5cf..5352a15 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -1513,6 +1513,7 @@ readCleanup:
}
}
}
+#endif
if (imageFormat == NULL) {
oldformat = 0;
for (imageFormatVersion3 = tsdPtr->formatListVersion3;
@@ -1528,7 +1529,6 @@ readCleanup:
}
}
}
-#endif
if (usedExt && !matched) {
/*
* If we didn't find one and we're using file extensions as the