Force a positive-length path for menu background (fixes #1305)

This commit is contained in:
John Firebaugh
2013-05-09 22:06:35 -07:00
parent 1641f38632
commit 72bcd94815
+2 -2
View File
@@ -35,8 +35,8 @@ iD.ui.RadialMenu = function(operations) {
.attr('d', 'M' + r * Math.sin(a0) + ',' +
r * Math.cos(a0) +
' A' + r + ',' + r + ' 0 0,0 ' +
r * Math.sin(a1) + ',' +
r * Math.cos(a1))
(r * Math.sin(a1) + 1e-3) + ',' +
(r * Math.cos(a1) + 1e-3)) // Force positive-length path (#1305)
.attr('stroke-width', 50)
.attr('stroke-linecap', 'round');