Skip to content

Commit

Permalink
Merge pull request #678 from SoerenKa93/bugfix-hdcomment-common-prope…
Browse files Browse the repository at this point in the history
…rties

Fix a bug that accidently overwrites hd comments common properties
  • Loading branch information
danielhrisca authored Mar 28, 2022
2 parents bf9ad51 + 903f125 commit 7bcdfb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asammdf/blocks/v4_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5520,7 +5520,7 @@ def to_blocks(self, address: int, blocks: list[Any]) -> int:
for e in common_properties:
name = e.get("name")
if name == "project":
e.text = self.author
e.text = self.project
break
else:
project = ET.SubElement(
Expand All @@ -5530,7 +5530,7 @@ def to_blocks(self, address: int, blocks: list[Any]) -> int:
for e in common_properties:
name = e.get("name")
if name == "subject":
e.text = self.author
e.text = self.subject
break
else:
subject = ET.SubElement(
Expand Down

0 comments on commit 7bcdfb4

Please sign in to comment.