Skip to content

Commit 68d6cd3

Browse files
authored
Merge pull request #9 from kleisauke/fix-scale-crash
Fix a crash on scale
2 parents 28e3ba0 + bddbfc8 commit 68d6cd3

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
@@ -729,8 +729,8 @@ imageui_find_scale(VipsImage *image,
729729
vips_stats(t1, &t2, NULL))
730730
return -1;
731731

732-
min = *VIPS_MATRIX(t1, 0, 0);
733-
max = *VIPS_MATRIX(t1, 1, 0);
732+
min = *VIPS_MATRIX(t2, 0, 0);
733+
max = *VIPS_MATRIX(t2, 1, 0);
734734
if (max == min) {
735735
vips_error("Find scale", _("Min and max are equal"));
736736
return -1;

0 commit comments

Comments
 (0)