Commit 860d29d0 authored by Philip Lafleur's avatar Philip Lafleur Committed by Philip Lafleur
Browse files

If transforming a path, use the path bounds rather than the mask bounds.

2004-06-18  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimptransformtool.c (gimp_transform_tool_bounds):
	If transforming a path, use the path bounds rather than the mask
	bounds. Fixes bug #144570.
parent 2a69c419
2004-06-18 Philip Lafleur <plafleur@cvs.gnome.org>
* app/tools/gimptransformtool.c (gimp_transform_tool_bounds):
If transforming a path, use the path bounds rather than the mask
bounds. Fixes bug #144570.
2004-06-17 Michael Natterer <mitch@gimp.org>
* app/core/gimp-utils.[ch]: added gimp_boolean_handled_accum().
......
......@@ -1280,11 +1280,26 @@ gimp_transform_tool_bounds (GimpTransformTool *tr_tool,
break;
case GIMP_TRANSFORM_TYPE_SELECTION:
case GIMP_TRANSFORM_TYPE_PATH:
gimp_channel_bounds (gimp_image_get_mask (gdisp->gimage),
&tr_tool->x1, &tr_tool->y1,
&tr_tool->x2, &tr_tool->y2);
break;
case GIMP_TRANSFORM_TYPE_PATH:
{
GimpVectors *vectors;
gdouble x1, y1, x2, y2;
vectors = gimp_image_get_active_vectors (gdisp->gimage);
gimp_vectors_bounds (vectors, &x1, &y1, &x2, &y2);
tr_tool->x1 = (gint) x1;
tr_tool->y1 = (gint) y1;
tr_tool->x2 = (gint) x2;
tr_tool->y2 = (gint) y2;
}
break;
}
}
......
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