Skip to content

Commit

Permalink
Corrected comment priority
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere authored Sep 30, 2023
1 parent b21ea55 commit 6200985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ def _read_comment(s):
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
Expand Down

0 comments on commit 6200985

Please sign in to comment.