[gimp/gimp-2-10] Issue #3641: gimp-drawable-offset does no longer work in script-fu...



commit c484a0c17b64286d19c8ac213a5fda10a878563b
Author: Jehan <jehan girinstud io>
Date:   Thu Jul 11 11:52:17 2019 +0200

    Issue #3641: gimp-drawable-offset does no longer work in script-fu...
    
    ... when one of the offsets is zero.
    
    Found by Ell.
    
    (cherry picked from commit a49a79e244b14de2639d58f089eb62ccd51ae414)

 app/core/gimpdrawable-offset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/core/gimpdrawable-offset.c b/app/core/gimpdrawable-offset.c
index 58089c5da5..b7f5eb21fc 100644
--- a/app/core/gimpdrawable-offset.c
+++ b/app/core/gimpdrawable-offset.c
@@ -64,7 +64,7 @@ gimp_drawable_offset (GimpDrawable   *drawable,
       offset_y %= height;
     }
 
-  if (offset_x == 0 || offset_y == 0)
+  if (offset_x == 0 && offset_y == 0)
     return;
 
   node = gegl_node_new_child (NULL,


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