Skip to content

Commit

Permalink
protection against to small diameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-pol committed May 2, 2015
1 parent d28f05c commit 338c5cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inkscape/src/main/assembly/dist/lace_polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,16 @@ def generate(self):
Generate rings with dots, either inside out or outside in
"""
circleNr = 0
minimum = 2 * self.options.dotSize * self.options.dotsPerCircle /pi
if minimum < self.options.innerDiameter:
minimum = self.options.innerDiameter
if self.options.alignment == 'outside':
diameter = self.options.outerDiameter
while diameter > self.options.innerDiameter:
while diameter > minimum:
diameter -= self.iterate(diameter, circleNr)
circleNr += 1
else:
diameter = self.options.innerDiameter
diameter = minimum
while diameter < self.options.outerDiameter:
diameter += self.iterate(diameter, circleNr)
circleNr += 1
Expand Down

0 comments on commit 338c5cf

Please sign in to comment.