[gegl] border-align: account for origin of child bounding box



commit b97ffa39654e6cde48921ce115db021fca637cab
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed May 20 22:15:16 2020 +0200

    border-align: account for origin of child bounding box

 operations/transform/border-align.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/operations/transform/border-align.c b/operations/transform/border-align.c
index 2657f5323..04fc3ec0a 100644
--- a/operations/transform/border-align.c
+++ b/operations/transform/border-align.c
@@ -131,6 +131,9 @@ create_matrix (OpTransform *op,
   y = o->y * (border_rect.height - box_rect.height - o->vertical_margin * 2)+
              o->vertical_margin;
 
+  x -= box_rect.x;
+  y -= box_rect.y;
+
   if (o->snap_integer)
   {
     x = roundf (x);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]