[gimp/soc-2010-cage] gimpcage: fix of a bug in the bounding box computation
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage] gimpcage: fix of a bug in the bounding box computation
- Date: Wed, 21 Jul 2010 20:44:49 +0000 (UTC)
commit 710af71d174eff32d2d3dd0efadbfe3b38ebcc34
Author: Michael Muré <batolettre gmail com>
Date: Wed Jul 21 22:44:15 2010 +0200
gimpcage: fix of a bug in the bounding box computation
app/core/gimpcage.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpcage.c b/app/core/gimpcage.c
index 6e82610..d65e505 100644
--- a/app/core/gimpcage.c
+++ b/app/core/gimpcage.c
@@ -424,11 +424,13 @@ gimp_cage_compute_bounding_box (GimpCage *gc)
if (x < gc->bounding_box.x)
{
+ gc->bounding_box.width += gc->bounding_box.x - x;
gc->bounding_box.x = x;
}
if (y < gc->bounding_box.y)
{
+ gc->bounding_box.height += gc->bounding_box.y - y;
gc->bounding_box.y = y;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]