Skip to content

Commit

Permalink
Bugfix for float comparison in fractional coordinate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jenskutilek committed Aug 26, 2016
1 parent 6f57144 commit cbbe45a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions RedArrow.glyphsReporter/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>52</string>
<string>53</string>
<key>CFBundleShortVersionString</key>
<string>0.5.2</string>
<string>0.5.3</string>
<key>UpdateFeedURL</key>
<string>https://raw.githubusercontent.com/jenskutilek/RedArrow-Glyphs/glyphs2/RedArrow.glyphsReporter/Contents/Info.plist</string>
<key>productPageURL</key>
<string>https://github.com/jenskutilek/RedArrow-Glyphs</string>
<key>productReleaseNotes</key>
<string>Respect the grid and grid subdivisions, don’t display arrows in preview modes.</string>
<string>Respect the grid and grid subdivisions, don’t display arrows in preview modes. Bugfix release.</string>
<key>LSHasLocalizedDisplayName</key>
<false/>
<key>NSAppleScriptEnabled</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _countQCurveSegment(self):
def _checkFractionalCoordinates(self, pt):
if self.fractional_ignore_point_zero:
pr = round_point(pt, self.grid_length)
if pr == pt:
if abs(pr[0] - pt[0]) < 0.001 and abs(pr[1] - pt[1]) < 0.001:
return False
else:
if type(pt[0]) == int and type(pt[1] == int):
Expand Down

0 comments on commit cbbe45a

Please sign in to comment.