mirror of https://github.com/GNOME/gimp.git
Bug 573070 – crash when working with 1x3200 pixel image
2009-03-12 Sven Neumann <sven@gimp.org> Bug 573070 – crash when working with 1x3200 pixel image * app/display/gimpdisplayshell.c (gimp_display_shell_scale_changed): make sure that x_src_dec and y_src_dec never become zero. svn path=/trunk/; revision=28142
This commit is contained in:
parent
7b5c3a8273
commit
44b368b1cd
|
@ -1,3 +1,10 @@
|
||||||
|
2009-03-12 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
Bug 573070 – crash when working with 1x3200 pixel image
|
||||||
|
|
||||||
|
* app/display/gimpdisplayshell.c (gimp_display_shell_scale_changed):
|
||||||
|
make sure that x_src_dec and y_src_dec never become zero.
|
||||||
|
|
||||||
2009-03-11 Sven Neumann <sven@gimp.org>
|
2009-03-11 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/core/gimpscanconvert.c (gimp_scan_convert_render_full):
|
* app/core/gimpscanconvert.c (gimp_scan_convert_render_full):
|
||||||
|
|
|
@ -1496,6 +1496,12 @@ gimp_display_shell_scale_changed (GimpDisplayShell *shell)
|
||||||
shell->y_dest_inc = gimp_image_get_height (image);
|
shell->y_dest_inc = gimp_image_get_height (image);
|
||||||
shell->x_src_dec = SCALEX (shell, gimp_image_get_width (image));
|
shell->x_src_dec = SCALEX (shell, gimp_image_get_width (image));
|
||||||
shell->y_src_dec = SCALEY (shell, gimp_image_get_height (image));
|
shell->y_src_dec = SCALEY (shell, gimp_image_get_height (image));
|
||||||
|
|
||||||
|
if (shell->x_src_dec < 1)
|
||||||
|
shell->x_src_dec = 1;
|
||||||
|
|
||||||
|
if (shell->y_src_dec < 1)
|
||||||
|
shell->y_src_dec = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue