mirror of https://github.com/GNOME/gimp.git
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:
parent
54078acc25
commit
b56e206d0b
|
@ -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
|
||||
|
|
|
@ -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_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);
|
||||
}
|
||||
|
||||
return template;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue