Skip to content

Commit

Permalink
there is no master.weight any more. This is only a very dirty hack
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Jan 9, 2018
1 parent b37ea8d commit 99fad80
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Autopsy.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,18 +726,19 @@ def main():
if len(f.masters) == 1:

# width
if f.masters[0].width and f.masters[0].width in widths:
width = widths[f.masters[0].width]
else:
width = 500
#if f.masters[0].width and f.masters[0].width in widths:
# width = widths[f.masters[0].width]
#else:
# width = 500
width = f.masters[0].widthValue

# weights
#print "__weights", weights
weight = 0
try:
weight = weights[f.masters[0].weight]
except:
pass
# weight = 0
# try:
# weight = weights[f.masters[0].weightValue]
# except:
# pass
weight = f.masters[0].weightValue

if weight < 10:
weight = 400
Expand Down

0 comments on commit 99fad80

Please sign in to comment.