Skip to content

Commit f75e9b6

Browse files
authored
Fix a crash on scale (#41)
1 parent 681903a commit f75e9b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/imageui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ imageui_find_scale(VipsImage *image,
539539
vips_stats(t1, &t2, NULL))
540540
return -1;
541541

542-
min = *VIPS_MATRIX(t1, 0, 0);
543-
max = *VIPS_MATRIX(t1, 1, 0);
542+
min = *VIPS_MATRIX(t2, 0, 0);
543+
max = *VIPS_MATRIX(t2, 1, 0);
544544
if (max == min) {
545545
vips_error("Find scale", _("Min and max are equal"));
546546
return -1;

0 commit comments

Comments
 (0)