libgimp: only save metadata after all settings have been updated.

Saving metadata was added inside the loop where the flags for
the differen types of metadata etc. to be saved were updated.
This caused multiple calls to save metadata with inconsistent
settings.
This commit is contained in:
Jacob Boerema 2020-10-22 21:36:40 -04:00
parent f67312293a
commit 9b0b20698e
1 changed files with 6 additions and 6 deletions

View File

@ -867,14 +867,14 @@ gimp_procedure_config_save_metadata (GimpProcedureConfig *config,
else
config->priv->metadata_flags &= ~prop_flag;
}
gimp_image_metadata_save_finish (exported_image,
config->priv->mime_type,
config->priv->metadata,
config->priv->metadata_flags,
file, NULL);
}
gimp_image_metadata_save_finish (exported_image,
config->priv->mime_type,
config->priv->metadata,
config->priv->metadata_flags,
file, NULL);
config->priv->metadata_saved = TRUE;
}
}