sync with the default template. Fixes bug #457286.

2007-07-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-new.c (gimp_image_new_get_last_template): sync
	with the default template. Fixes bug #457286.

svn path=/trunk/; revision=22938
This commit is contained in:
Sven Neumann 2007-07-16 13:49:17 +00:00 committed by Sven Neumann
parent 54078acc25
commit b56e206d0b
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-07-16 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-new.c (gimp_image_new_get_last_template): sync
with the default template. Fixes bug #457286.
2007-07-16 Sven Neumann <sven@gimp.org>
* plug-ins/uri/uri.c

View File

@ -24,6 +24,8 @@
#include "core-types.h"
#include "config/gimpcoreconfig.h"
#include "gimp.h"
#include "gimpimage.h"
#include "gimpimage-new.h"
@ -44,10 +46,16 @@ gimp_image_new_get_last_template (Gimp *gimp,
template = gimp_template_new ("image new values");
if (image)
gimp_template_set_from_image (template, image);
{
gimp_config_sync (G_OBJECT (gimp->config->default_image),
G_OBJECT (template), 0);
gimp_template_set_from_image (template, image);
}
else
gimp_config_sync (G_OBJECT (gimp->image_new_last_template),
G_OBJECT (template), 0);
{
gimp_config_sync (G_OBJECT (gimp->image_new_last_template),
G_OBJECT (template), 0);
}
return template;
}