Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gThumb
Commits
a4da6db2
Commit
a4da6db2
authored
Sep 07, 2009
by
Paolo Bacchilega
Browse files
[exiv2] do not save empty comments
parent
9fc91d19
Changes
1
Hide whitespace changes
Inline
Side-by-side
extensions/exiv2/exiv2-utils.cpp
View file @
a4da6db2
...
...
@@ -644,12 +644,9 @@ exiv2_write_metadata_private (Exiv2::Image::AutoPtr image,
xd
.
erase
(
iter
);
try
{
/*if (strcmp (key, "Xmp.dc.description") == 0) {
Exiv2::Value::AutoPtr v = Exiv2::Value::create(Exiv2::langAlt);
v->read(gth_metadata_get_raw (metadatum));
xd.add (Exiv2::XmpKey (key), v.get());
}
else FIXME */
const
char
*
value
=
gth_metadata_get_raw
(
metadatum
);
if
((
value
!=
NULL
)
&&
strcmp
(
value
,
""
)
!=
0
)
xd
[
key
]
=
gth_metadata_get_raw
(
metadatum
);
}
catch
(
Exiv2
::
AnyError
&
e
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment