[gimp/gimp-2-10] app: allow calling gimp_tile_handler_validate_validate() with a NULL rect



commit 537ae20fa01f339755eb3d745f6c26978efd9fd4
Author: Ell <ell_se yahoo com>
Date:   Wed Jan 15 21:38:10 2020 +0200

    app: allow calling gimp_tile_handler_validate_validate() with a NULL rect
    
    ... and validate the entire buffer.
    
    (cherry picked from commit ba6040bbcd940f693fbc1031fe4a5a29466aa883)

 app/gegl/gimptilehandlervalidate.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/app/gegl/gimptilehandlervalidate.c b/app/gegl/gimptilehandlervalidate.c
index 0d8e0a3c23..8948278b94 100644
--- a/app/gegl/gimptilehandlervalidate.c
+++ b/app/gegl/gimptilehandlervalidate.c
@@ -508,6 +508,9 @@ gimp_tile_handler_validate_validate (GimpTileHandlerValidate *validate,
 
   klass = GIMP_TILE_HANDLER_VALIDATE_GET_CLASS (validate);
 
+  if (! rect)
+    rect = gegl_buffer_get_extent (buffer);
+
   if (intersect)
     {
       cairo_region_t *region = cairo_region_copy (validate->dirty_region);


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