Commit 5391cbad authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

ensure that each rank of a brushpipe is >= 1.

2004-03-17  Simon Budig  <simon@gimp.org>

	* app/core/gimpbrushpipe.c: ensure that each rank of a
	brushpipe is >= 1.

	Fixes bug #137529
parent 0744497e
2004-03-17 Simon Budig <simon@gimp.org>
* app/core/gimpbrushpipe.c: ensure that each rank of a
brushpipe is >= 1.
Fixes bug #137529
2004-03-17 Sven Neumann <sven@gimp.org>
* app/widgets/gimpbrushfactoryview.c
......@@ -425,7 +425,7 @@ gimp_brush_pipe_load (const gchar *filename,
for (i = 0; i < pipe->dimension; i++)
{
pipe->rank[i] = params.rank[i];
pipe->rank[i] = MAX (1, params.rank[i]);
if (strcmp (params.selection[i], "incremental") == 0)
pipe->select[i] = PIPE_SELECT_INCREMENTAL;
else if (strcmp (params.selection[i], "angular") == 0)
......
......@@ -425,7 +425,7 @@ gimp_brush_pipe_load (const gchar *filename,
for (i = 0; i < pipe->dimension; i++)
{
pipe->rank[i] = params.rank[i];
pipe->rank[i] = MAX (1, params.rank[i]);
if (strcmp (params.selection[i], "incremental") == 0)
pipe->select[i] = PIPE_SELECT_INCREMENTAL;
else if (strcmp (params.selection[i], "angular") == 0)
......
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