mirror of https://github.com/GNOME/gimp.git
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:
parent
f67312293a
commit
9b0b20698e
|
@ -867,14 +867,14 @@ gimp_procedure_config_save_metadata (GimpProcedureConfig *config,
|
||||||
else
|
else
|
||||||
config->priv->metadata_flags &= ~prop_flag;
|
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;
|
config->priv->metadata_saved = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue