Skip to content

Commit

Permalink
xscale, yscale accesed before assigment fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MadScrewdriver committed Sep 19, 2023
1 parent ef4a49a commit cb558ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qsketchmetric/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def _prepare_graph(self):
importer.import_block(entity.dxf.name, rename=False)
importer.finalize()

xscale, yscale = None, None
org_w, org_h = self.get_bb_dimensions(entity.block())
raw_new_w, raw_new_h = map(lambda x: x.strip(), constant_xdata.split("@"))

Expand Down

0 comments on commit cb558ae

Please sign in to comment.