app: behave as if "show all" is disabled in scroll/zoom actions when keeping padding

This commit is contained in:
Ell
2019-09-15 16:22:06 +03:00
parent c8df81692c
commit f7582614f4
10 changed files with 125 additions and 21 deletions

View File

@ -1497,9 +1497,17 @@ gimp_image_window_shrink_wrap (GimpImageWindow *window,
gtk_widget_get_window (widget));
gdk_screen_get_monitor_workarea (screen, monitor, &rect);
gimp_display_shell_scale_get_image_bounding_box (active_shell,
NULL, NULL,
&width, &height);
if (! gimp_display_shell_get_infinite_canvas (active_shell))
{
gimp_display_shell_scale_get_image_size (active_shell,
&width, &height);
}
else
{
gimp_display_shell_scale_get_image_bounding_box (active_shell,
NULL, NULL,
&width, &height);
}
disp_width = active_shell->disp_width;
disp_height = active_shell->disp_height;