Skip to content

Commit bddbfc8

Browse files
committed
Fix a crash on scale
(cherry picked from commit libvips/vipsdisp@f75e9b6)
1 parent 0effb99 commit bddbfc8

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)