Commits

David Boddie committed 58bfdc0

Clarified the intention of some code to constrain maximum stitch length.

Comments (0)

Files changed (1)

         sys.exit(1)
     
     elif len(sys.argv) == 4:
-        max_stitch_length = min(127.0, max(1.0, float(sys.argv[1])))
+        max_stitch_length = min(max(1.0, float(sys.argv[1])), 127.0)
         svg_file = sys.argv[2]
         jef_file = sys.argv[3]