Skip to content

Commit

Permalink
Don't 'export_with_flags' if imageio system is closed
Browse files Browse the repository at this point in the history
When there is no imageio system available we simply can't write any image file so don't proceed further.
  • Loading branch information
jenshannoschwalm committed Dec 15, 2024
1 parent e7f554a commit 428576f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/imageio/imageio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ gboolean dt_imageio_export_with_flags(const dt_imgid_t imgid,
dt_export_metadata_t *metadata,
const int history_end)
{
if(darktable.imageio == NULL)
{
dt_print(DT_DEBUG_IMAGEIO, "[dt_imageio_export_with_flags] aborted as imageio is closed");
return TRUE;
}
dt_develop_t dev;
dt_dev_init(&dev, FALSE);
dt_dev_load_image(&dev, imgid);
Expand Down

0 comments on commit 428576f

Please sign in to comment.