[gimp/soc-2010-cage-2] gimpcage: fix of a bug in the bounding box computation



commit c24029c230cbeb107b58f0d6bf685dd921158666
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]