mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
abort early if the values are all setup already. Fixes bug #164281.
2005-05-06 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale_by_values): abort early if the values are all setup already. Fixes bug #164281.
This commit is contained in:
parent
260bf6e8ba
commit
f3c0a28de8
|
@ -1,3 +1,9 @@
|
|||
2005-05-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell-scale.c
|
||||
(gimp_display_shell_scale_by_values): abort early if the values are
|
||||
all setup already. Fixes bug #164281.
|
||||
|
||||
2005-05-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/composite/gimp-composite-sse2.c
|
||||
|
|
|
@ -504,11 +504,15 @@ gimp_display_shell_scale_by_values (GimpDisplayShell *shell,
|
|||
gint offset_y,
|
||||
gboolean resize_window)
|
||||
{
|
||||
Gimp *gimp;
|
||||
|
||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||
|
||||
gimp = shell->gdisp->gimage->gimp;
|
||||
/* Abort early if the values are all setup already. We don't
|
||||
* want to inadvertently resize the window (bug #164281).
|
||||
*/
|
||||
if (shell->scale == scale &&
|
||||
shell->offset_x == offset_x &&
|
||||
shell->offset_y == offset_y)
|
||||
return;
|
||||
|
||||
/* freeze the active tool */
|
||||
gimp_display_shell_pause (shell);
|
||||
|
|
Loading…
Reference in a new issue