File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -469,6 +469,12 @@ Error ImageItem_Grid::decode_and_paste_tile_image(heif_item_id tileID, uint32_t
469469 auto tileItem = get_context ()->get_image (tileID, true );
470470 if (!tileItem && !options.strict_decoding ) {
471471 // We ignore missing images.
472+ if (inout_image) {
473+ inout_image->add_warning (Error{
474+ heif_error_Invalid_input,
475+ heif_suberror_Missing_grid_images,
476+ });
477+ }
472478 return progress_and_return_ok (options, progress_counter);
473479 }
474480
@@ -481,6 +487,12 @@ Error ImageItem_Grid::decode_and_paste_tile_image(heif_item_id tileID, uint32_t
481487 if (!decodeResult) {
482488 if (!options.strict_decoding ) {
483489 // We ignore broken tiles.
490+ if (inout_image) {
491+ inout_image->add_warning (Error{
492+ heif_error_Invalid_input,
493+ heif_suberror_Missing_grid_images,
494+ });
495+ }
484496 return progress_and_return_ok (options, progress_counter);
485497 }
486498
You can’t perform that action at this time.
0 commit comments