mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
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>
|
||||
|
||||
* 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->x_src_dec = SCALEX (shell, gimp_image_get_width (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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue