Commit 616c79de authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

allow showing the grid for path transforms. Fixes bug #362588.

2006-10-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformtool.c (gimp_transform_tool_draw): allow
	showing the grid for path transforms. Fixes bug #362588.
parent 676b6cc0
2006-10-19 Michael Natterer <mitch@gimp.org>
* app/tools/gimptransformtool.c (gimp_transform_tool_draw): allow
showing the grid for path transforms. Fixes bug #362588.
2006-10-19 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scheme-wrapper.[ch]: search script-fu.init in
......
......@@ -773,12 +773,10 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
z4 = ((tr_tool->tx3 - tr_tool->tx2) * (tr_tool->ty1 - tr_tool->ty2) -
(tr_tool->tx1 - tr_tool->tx2) * (tr_tool->ty3 - tr_tool->ty2));
/* Draw the grid (not for path transform since it looks ugly) */
if (tr_tool->type != GIMP_TRANSFORM_TYPE_PATH &&
tr_tool->grid_coords &&
tr_tool->tgrid_coords &&
z1 * z2 > 0 &&
/* draw the grid */
if (tr_tool->grid_coords &&
tr_tool->tgrid_coords &&
z1 * z2 > 0 &&
z3 * z4 > 0)
{
gint gci, i, k;
......
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