aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-01-17 14:01:08 +0100
committerOlivier Tilloy <olivier@tilloy.net>2010-01-17 14:01:08 +0100
commit81afdf65eec5aab15f3321a0ae86a86fabef8f3e (patch)
treee6a329b5f9c4d6204fffb155736427476d3b18ca /src
parente20ff63816bf29a6605d35bd65423aa7ea672672 (diff)
downloadpyexiv2-81afdf65eec5aab15f3321a0ae86a86fabef8f3e.tar.gz
IPTC: when setting the values of a tag, use its raw_values.
Trying to re-convert its values is costly and more error-prone.
Diffstat (limited to 'src')
-rw-r--r--src/pyexiv2/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyexiv2/metadata.py b/src/pyexiv2/metadata.py
index c3ca2a6..ede1885 100644
--- a/src/pyexiv2/metadata.py
+++ b/src/pyexiv2/metadata.py
@@ -177,7 +177,7 @@ class ImageMetadata(object):
# overwritten.
if not isinstance(tag, IptcTag):
raise TypeError('Expecting an IptcTag')
- self._image.setIptcTagValues(tag.key, tag.to_string_list())
+ self._image.setIptcTagValues(tag.key, tag.raw_values)
self._tags['iptc'][tag.key] = tag
tag.metadata = self