Commit 22544ff4 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

do not compare the value with itself

parent 886dbff6
......@@ -120,9 +120,9 @@ comments__read_metadata_ready_cb (GthFileData *file_data,
metadata = (GthMetadata *) g_file_info_get_attribute_object (file_data->info, "general::datetime");
if (metadata != NULL) {
text = gth_metadata_get_raw (metadata);
metadata = (GthMetadata *) g_file_info_get_attribute_object (file_data->info, "comment::time");
if (metadata != NULL) {
text = gth_metadata_get_raw (metadata);
if (g_strcmp0 (gth_metadata_get_raw (metadata), text) != 0) {
gth_comment_set_time_from_exif_format (comment, gth_metadata_get_raw (metadata));
write_comment = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment