Skip to content

Commit

Permalink
fix xylopaint
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz committed Oct 16, 2022
1 parent 9b756a9 commit a9449a6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions PyPDF2/generic/_data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,7 @@ def clone(
)
if ignore_fields is None:
ignore_fields = []
if len(d__.keys()) == 0:
d__._clone(self, pdf_dest, force_duplicate, ignore_fields)
d__._clone(self, pdf_dest, force_duplicate, ignore_fields)
return d__

def _clone(
Expand All @@ -895,9 +894,8 @@ def _clone(
self.pdf = pdf_dest
self.operations = list(cast("ContentStream", src).operations)
self.forced_encoding = cast("ContentStream", src).forced_encoding

super()._clone(src, pdf_dest, force_duplicate, ignore_fields)

# no need to call DictionaryObjection or any
# super(DictionaryObject,self)._clone(src, pdf_dest, force_duplicate, ignore_fields)
return

def __parse_content_stream(self, stream: StreamType) -> None:
Expand Down

0 comments on commit a9449a6

Please # to comment.