mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 15:44:46 +03:00
Merge 45f65846db
into e5513804a3
This commit is contained in:
commit
bdbfeff7e3
|
@ -550,7 +550,7 @@ class ImageFileDirectory_v2(collections.MutableMapping):
|
||||||
|
|
||||||
dest = self._tags_v1 if legacy_api else self._tags_v2
|
dest = self._tags_v1 if legacy_api else self._tags_v2
|
||||||
|
|
||||||
if info.length == 1:
|
if info.length > 0 and len(values) == 1:
|
||||||
if legacy_api and self.tagtype[tag] in [5, 10]:
|
if legacy_api and self.tagtype[tag] in [5, 10]:
|
||||||
values = values,
|
values = values,
|
||||||
dest[tag], = values
|
dest[tag], = values
|
||||||
|
|
Loading…
Reference in New Issue
Block a user