Commit aea5b1a9 authored by Martin Nordholts's avatar Martin Nordholts

Bug 562366 – Default image dimensions are not correctly

transferred in the file/new dialog box

* app/dialogs/preferences-dialog.c
(prefs_template_select_callback): We need to copy the template in
the same way as in the New Image dialog.

* app/dialogs/image-new-dialog.c (image_new_dialog_set): ... and
when we copy the template to the New Image dialog.

svn path=/trunk/; revision=27724
parent 05dc99ec
......@@ -7,6 +7,9 @@
(prefs_template_select_callback): We need to copy the template in
the same way as in the New Image dialog.
* app/dialogs/image-new-dialog.c (image_new_dialog_set): ... and
when we copy the template to the New Image dialog.
2008-11-26 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-duplicate.c: split spaghetti code into lots
......
......@@ -188,7 +188,11 @@ image_new_dialog_set (GtkWidget *widget,
template = gimp_image_new_get_last_template (dialog->context->gimp,
image);
gimp_config_sync (G_OBJECT (template), G_OBJECT (dialog->template), 0);
/* make sure the resolution values are copied first (see bug #546924) */
gimp_config_sync (G_OBJECT (template), G_OBJECT (dialog->template),
GIMP_TEMPLATE_PARAM_COPY_FIRST);
gimp_config_sync (G_OBJECT (template), G_OBJECT (dialog->template),
0);
g_object_unref (template);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment