mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 11:14:46 +03:00
Merge 92096e1aa7
into da2ea4cfe3
This commit is contained in:
commit
8385bf7344
|
@ -541,7 +541,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 == 1 and len(values) > 0:
|
||||||
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