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.
This commit is contained in:
Michael Natterer 1999-04-29 22:54:09 +00:00 committed by Michael Natterer
parent 0c0e59390d
commit f2681a95d1
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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):

View File

@ -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);

View File

@ -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);

View File

@ -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);