[gegl] Bug 552658 – redundant/incorrect code in gegl-buffer.c (check for ...
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] Bug 552658 – redundant/incorrect code in gegl-buffer.c (check for ...
- Date: Tue, 14 Jul 2009 20:37:22 +0000 (UTC)
commit bfe6ac93df4478ee9c29e6704a9ce88d83507355
Author: Adam Turcotte <adam turcotte gmail com>
Date: Tue Jun 30 18:07:03 2009 -0400
Bug 552658 â?? redundant/incorrect code in gegl-buffer.c (check for ...
Two small gegl-buffer.c bugfixes.
gegl/buffer/gegl-buffer.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 352147e..61c467a 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -315,7 +315,7 @@ gegl_buffer_set_extent (GeglBuffer *buffer,
{
GeglBufferHeader *header = ((GeglBufferHeader*)(gegl_buffer_backend (buffer)->header));
header->x = buffer->extent.x;
- header->y = buffer->extent.x;
+ header->y = buffer->extent.y;
header->width = buffer->extent.width;
header->height = buffer->extent.height;
}
@@ -576,8 +576,7 @@ gegl_buffer_constructor (GType type,
* disk buffer creation, nasty but it seems to do the job.
*/
- if (buffer->extent.width == 0 &&
- buffer->extent.width == 0)
+ if (buffer->extent.width == 0)
{
buffer->extent.width = width;
buffer->extent.height = height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]