GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 0bd94f17 authored by Jehan's avatar Jehan

plug-ins: properly "Apply layer masks before saving" when checked.

The `if` test was inverted. When the option is checked, we don't want to
add the GIMP_EXPORT_CAN_HANDLE_LAYER_MASKS capability so that
gimp_export_image() applies the mask.
This is a first step to fix bug 783528, but it's not finished. Right
now, when the option is unchecked, the mask is simply ignored. We want
to export a PDF mask instead.
parent d37fb8aa
......@@ -488,7 +488,10 @@ run (const gchar *name,
if (optimize.apply_masks)
/* This seems counter-intuitive, but not setting the mask capability
* will apply any layer mask upon gimp_export_image().
if (! optimize.apply_masks)
for (i = 0; i < multi_page.image_count; i++)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment