app: fix gimp_display_shell_scroll() again to work right with rotation
Call gimp_display_shell_scrolled() before gimp_overlay_box_scroll() so the rotate transform is updated before the actual scrolling. The explicit call to gimp_display_shell_rotate_update_transform() got lost during the last commits, but this solution is cleaner and less redundant anyway.
This commit is contained in:
@ -88,10 +88,11 @@ gimp_display_shell_scroll (GimpDisplayShell *shell,
|
||||
|
||||
if (x_offset || y_offset)
|
||||
{
|
||||
gimp_display_shell_scrolled (shell);
|
||||
|
||||
gimp_overlay_box_scroll (GIMP_OVERLAY_BOX (shell->canvas),
|
||||
-x_offset, -y_offset);
|
||||
|
||||
gimp_display_shell_scrolled (shell);
|
||||
}
|
||||
|
||||
/* re-enable the active tool */
|
||||
@ -132,10 +133,10 @@ gimp_display_shell_scroll_set_offset (GimpDisplayShell *shell,
|
||||
|
||||
gimp_display_shell_scroll_clamp_and_update (shell);
|
||||
|
||||
gimp_display_shell_expose_full (shell);
|
||||
|
||||
gimp_display_shell_scrolled (shell);
|
||||
|
||||
gimp_display_shell_expose_full (shell);
|
||||
|
||||
/* re-enable the active tool */
|
||||
gimp_display_shell_resume (shell);
|
||||
}
|
||||
|
Reference in New Issue
Block a user