Commit f2681a95 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer
Browse files

fixed a cut-and-paste bug: vertical flip iterates over rows, not columns.

1999-04-30  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/flip_tool.c: fixed a cut-and-paste bug: vertical flip
	iterates over rows, not columns.
parent 0c0e5939
1999-04-30 Michael Natterer <mitschel@cs.tu-berlin.de>
* app/flip_tool.c: fixed a cut-and-paste bug: vertical flip
iterates over rows, not columns.
Thu Apr 29 16:32:11 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
* plug-ins/url/url.c (load_image):
......
......@@ -235,7 +235,7 @@ flip_tool_flip (GImage *gimage,
copy_region (&srcPR, &destPR);
}
else
for (i = 0; i < orig->width; i++)
for (i = 0; i < orig->height; i++)
{
pixel_region_init (&srcPR, orig, 0, i, orig->width, 1, FALSE);
pixel_region_init (&destPR, new, 0, (orig->height - i - 1), orig->width, 1, TRUE);
......
......@@ -235,7 +235,7 @@ flip_tool_flip (GImage *gimage,
copy_region (&srcPR, &destPR);
}
else
for (i = 0; i < orig->width; i++)
for (i = 0; i < orig->height; i++)
{
pixel_region_init (&srcPR, orig, 0, i, orig->width, 1, FALSE);
pixel_region_init (&destPR, new, 0, (orig->height - i - 1), orig->width, 1, TRUE);
......
......@@ -235,7 +235,7 @@ flip_tool_flip (GImage *gimage,
copy_region (&srcPR, &destPR);
}
else
for (i = 0; i < orig->width; i++)
for (i = 0; i < orig->height; i++)
{
pixel_region_init (&srcPR, orig, 0, i, orig->width, 1, FALSE);
pixel_region_init (&destPR, new, 0, (orig->height - i - 1), orig->width, 1, TRUE);
......
Supports Markdown
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