Commit d75c6435 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent d6a477a7
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>
......
......@@ -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);
}
......@@ -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);
}
......@@ -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);
}
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