set the spacing and other info from the first brush just as the old code

2000-12-19  Sven Neumann  <sven@gimp.org>

	* app/gimpbrushpipe.c (gimp_brush_pipe_load): set the spacing and
	other info from the first brush just as the old code used to do.
This commit is contained in:
Sven Neumann 2000-12-19 03:22:05 +00:00 committed by Sven Neumann
parent d6a477a7ac
commit d75c6435e0
4 changed files with 29 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2000-12-19 Sven Neumann <sven@gimp.org>
* app/gimpbrushpipe.c (gimp_brush_pipe_load): set the spacing and
other info from the first brush just as the old code used to do.
2000-12-19 Sven Neumann <sven@gimp.org>
Michael Natterer <mitch@gimp.org>

View File

@ -394,11 +394,16 @@ gimp_brush_pipe_load (gchar *filename)
pipe->current = pipe->brushes[0];
/* just to satisfy the code that relies on this crap */
GIMP_BRUSH (pipe)->mask = pipe->brushes[0]->mask;
GIMP_BRUSH (pipe)->pixmap = pipe->brushes[0]->pixmap;
GIMP_BRUSH (pipe)->filename = g_strdup (filename);
GIMP_BRUSH (pipe)->spacing = pipe->current->spacing;
GIMP_BRUSH (pipe)->x_axis = pipe->current->x_axis;
GIMP_BRUSH (pipe)->y_axis = pipe->current->y_axis;
GIMP_BRUSH (pipe)->mask = pipe->current->mask;
GIMP_BRUSH (pipe)->pixmap = pipe->current->pixmap;
close (fd);
return GIMP_BRUSH (pipe);
}

View File

@ -394,11 +394,16 @@ gimp_brush_pipe_load (gchar *filename)
pipe->current = pipe->brushes[0];
/* just to satisfy the code that relies on this crap */
GIMP_BRUSH (pipe)->mask = pipe->brushes[0]->mask;
GIMP_BRUSH (pipe)->pixmap = pipe->brushes[0]->pixmap;
GIMP_BRUSH (pipe)->filename = g_strdup (filename);
GIMP_BRUSH (pipe)->spacing = pipe->current->spacing;
GIMP_BRUSH (pipe)->x_axis = pipe->current->x_axis;
GIMP_BRUSH (pipe)->y_axis = pipe->current->y_axis;
GIMP_BRUSH (pipe)->mask = pipe->current->mask;
GIMP_BRUSH (pipe)->pixmap = pipe->current->pixmap;
close (fd);
return GIMP_BRUSH (pipe);
}

View File

@ -394,11 +394,16 @@ gimp_brush_pipe_load (gchar *filename)
pipe->current = pipe->brushes[0];
/* just to satisfy the code that relies on this crap */
GIMP_BRUSH (pipe)->mask = pipe->brushes[0]->mask;
GIMP_BRUSH (pipe)->pixmap = pipe->brushes[0]->pixmap;
GIMP_BRUSH (pipe)->filename = g_strdup (filename);
GIMP_BRUSH (pipe)->spacing = pipe->current->spacing;
GIMP_BRUSH (pipe)->x_axis = pipe->current->x_axis;
GIMP_BRUSH (pipe)->y_axis = pipe->current->y_axis;
GIMP_BRUSH (pipe)->mask = pipe->current->mask;
GIMP_BRUSH (pipe)->pixmap = pipe->current->pixmap;
close (fd);
return GIMP_BRUSH (pipe);
}