[gimp/gimp-2-10] app: add support for offset buffers in GimpScanConvert



commit 21d6c8a8da8f0b24741a5f62a4db637e7b09d7e3
Author: Ell <ell_se yahoo com>
Date:   Mon Feb 3 19:59:35 2020 +0200

    app: add support for offset buffers in GimpScanConvert
    
    Ditto.
    
    (cherry picked from commit d920569771cb3da4b2141df8f70cb0552a1f4c25)

 app/core/gimpscanconvert.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpscanconvert.c b/app/core/gimpscanconvert.c
index 78b73461b1..dc763bc4b0 100644
--- a/app/core/gimpscanconvert.c
+++ b/app/core/gimpscanconvert.c
@@ -509,8 +509,8 @@ gimp_scan_convert_render_full (GimpScanConvert *sc,
   g_return_if_fail (sc != NULL);
   g_return_if_fail (GEGL_IS_BUFFER (buffer));
 
-  x      = 0;
-  y      = 0;
+  x      = gegl_buffer_get_x      (buffer);
+  y      = gegl_buffer_get_y      (buffer);
   width  = gegl_buffer_get_width  (buffer);
   height = gegl_buffer_get_height (buffer);
 


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