Skip to content

Commit

Permalink
do not write "None" handles #1240
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Feb 11, 2025
1 parent 70143c4 commit 0457e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions notes/pages/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- {{issue 1231}}
- BUGFIX: fix font name resolution in `ezdxf.tools.text_size()` function
- {{issue 1236}}
- BUGFIX: do not write `None` handles
- ## Version 1.3.5 - 2024-12-15
- ((65ed4f6c-edc8-4390-880c-c604a3fa5ec0))
- NEW: `ezdxf.blkrefs.find_unreferenced_blocks()` function returns the names of unused block definitions
Expand Down
2 changes: 1 addition & 1 deletion src/ezdxf/entities/dxfentity.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def export_base_class(self, tagwriter: AbstractTagWriter) -> None:
self.extension_dict.export_dxf(tagwriter) # type: ignore
if self.reactors:
self.reactors.export_dxf(tagwriter)
tagwriter.write_tag2(const.OWNER_CODE, self.dxf.owner)
tagwriter.write_tag2(const.OWNER_CODE, self.dxf.get("owner", "0"))
else: # DXF R12
if tagwriter.write_handles:
tagwriter.write_tag2(_handle_code, self.dxf.handle)
Expand Down

0 comments on commit 0457e09

Please sign in to comment.