From ba6040bbcd940f693fbc1031fe4a5a29466aa883 Mon Sep 17 00:00:00 2001 From: Ell Date: Wed, 15 Jan 2020 21:38:10 +0200 Subject: [PATCH] app: allow calling gimp_tile_handler_validate_validate() with a NULL rect ... and validate the entire buffer. --- app/gegl/gimptilehandlervalidate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/gegl/gimptilehandlervalidate.c b/app/gegl/gimptilehandlervalidate.c index f7b24c0c6f..4dde27091d 100644 --- a/app/gegl/gimptilehandlervalidate.c +++ b/app/gegl/gimptilehandlervalidate.c @@ -511,6 +511,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);