mirror of https://github.com/GNOME/gimp.git
Center the image after connecting to it. This is required if the image we
2008-08-03 Martin Nordholts <martinn@svn.gnome.org> * app/display/gimpdisplayshell.c (gimp_display_shell_new): Center the image after connecting to it. This is required if the image we connect to is smaller than the initial canvas size. svn path=/trunk/; revision=26356
This commit is contained in:
parent
6c48f2b601
commit
6f8f412fd4
|
@ -1,3 +1,9 @@
|
|||
2008-08-03 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/display/gimpdisplayshell.c (gimp_display_shell_new): Center
|
||||
the image after connecting to it. This is required if the image we
|
||||
connect to is smaller than the initial canvas size.
|
||||
|
||||
2008-08-03 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
Further work for completing bug #362915 that makes changes to the
|
||||
|
|
|
@ -1204,6 +1204,9 @@ gimp_display_shell_new (GimpDisplay *display,
|
|||
if (display->image)
|
||||
{
|
||||
gimp_display_shell_connect (shell);
|
||||
|
||||
/* after connecting to the image we want to center it */
|
||||
gimp_display_shell_center_image_on_next_size_allocate (shell);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue