mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-18 17:00:09 +00:00
correctly initializes the paint_type field of the default style.
* plug-ins/gfig/gfig-dialog.c: correctly initializes the paint_type field of the default style. * plug-ins/gfig/gfig-style.c: don't print an useless error message where no-one can see it when loading an other with no style but use the default style instead.
This commit is contained in:
parent
8221434de3
commit
21e48f61f2
3 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
2004-11-28 DindinX <dindinx@gimp.org>
|
||||
|
||||
* plug-ins/gfig/gfig-dialog.c: correctly initializes the paint_type
|
||||
field of the default style.
|
||||
|
||||
* plug-ins/gfig/gfig-style.c: don't print an useless error message
|
||||
where no-one can see it when loading an other with no style but use
|
||||
the default style instead.
|
||||
|
||||
2004-11-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/gfig/gfig-dialog.[ch]
|
||||
|
|
|
@ -246,6 +246,7 @@ gfig_dialog (void)
|
|||
|
||||
/* initial gimp and default styles */
|
||||
gfig_read_gimp_style (&gfig_context->gimp_style, "Gimp");
|
||||
gfig_context->default_style.paint_type = selvals.painttype;
|
||||
gfig_context->current_style = &gfig_context->default_style;
|
||||
gfig_style_append (&gfig_context->gimp_style);
|
||||
gfig_read_gimp_style (&gfig_context->default_style, "Base");
|
||||
|
|
|
@ -190,8 +190,8 @@ gfig_load_style (Style *style,
|
|||
get_line (load_buf2, MAX_LOAD_LINE, fp, 0);
|
||||
if (1 != sscanf (load_buf2, "<Style %s>", name))
|
||||
{
|
||||
/* no style data */
|
||||
g_printerr ("No style data\n");
|
||||
/* no style data, copy default style and fail silently */
|
||||
gfig_style_copy (style, &gfig_context->default_style, "default style");
|
||||
fseek (fp, offset, SEEK_SET);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue