~hobs/pyexiv2/pyexiv2

Viewing all changes in revision 373.

  • Committer: Olivier Tilloy
  • Date: 2012-01-16 19:06:53 UTC
  • Revision ID: olivier@tilloy.net-20120116190653-x1d7burdvwaa4so5
Simplify and optimize ExifTag::setParentImage(…) and XmpTag::setParentImage(…)
by re-setting the value of the datum to a copy of the existing datum’s value.

This also fixes setting the value of an XMP tag of type array to [''] (this issue was uncovered by Benjamin Henne, see http://dev.exiv2.org/boards/3/topics/1039 for details).

Unfortunately this can’t easily be transposed to IptcTag::setParentImage(…) due to implementation details.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: