Corrected comment priority

This commit is contained in:
Andrew Murray 2023-09-30 07:54:39 +00:00 committed by GitHub
parent b21ea55beb
commit 620098571a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,9 @@ class EpsImageFile(ImageFile.ImageFile):
if k == "BoundingBox":
if v == "(atend)":
reading_trailer_comments = True
elif not self._size or reading_trailer_comments:
elif not self._size or (
trailer_reached and reading_trailer_comments
):
try:
# Note: The DSC spec says that BoundingBox
# fields should be integers, but some drivers