We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed143f5 + e9f831d commit c6e07d0Copy full SHA for c6e07d0
1 file changed
src/libImaging/Geometry.c
@@ -791,15 +791,15 @@ ImagingGenericTransform(
791
char *out;
792
double xx, yy;
793
794
+ if (!imOut || !imIn || strcmp(imIn->mode, imOut->mode) != 0) {
795
+ return (Imaging)ImagingError_ModeError();
796
+ }
797
+
798
ImagingTransformFilter filter = getfilter(imIn, filterid);
799
if (!filter) {
800
return (Imaging)ImagingError_ValueError("bad filter number");
801
}
802
- if (!imOut || !imIn || strcmp(imIn->mode, imOut->mode) != 0) {
- return (Imaging)ImagingError_ModeError();
- }
-
803
ImagingCopyPalette(imOut, imIn);
804
805
ImagingSectionEnter(&cookie);
0 commit comments