Skip to content

Commit

Permalink
Fix a crash on scale (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke authored Dec 4, 2024
1 parent 681903a commit f75e9b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imageui.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ imageui_find_scale(VipsImage *image,
vips_stats(t1, &t2, NULL))
return -1;

min = *VIPS_MATRIX(t1, 0, 0);
max = *VIPS_MATRIX(t1, 1, 0);
min = *VIPS_MATRIX(t2, 0, 0);
max = *VIPS_MATRIX(t2, 1, 0);
if (max == min) {
vips_error("Find scale", _("Min and max are equal"));
return -1;
Expand Down

0 comments on commit f75e9b6

Please sign in to comment.