From 72bcd9481563765f33ec5130140e28518312253a Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 9 May 2013 22:06:35 -0700 Subject: [PATCH] Force a positive-length path for menu background (fixes #1305) --- js/id/ui/radial_menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/ui/radial_menu.js b/js/id/ui/radial_menu.js index 6fcb51e38..ca41fe590 100644 --- a/js/id/ui/radial_menu.js +++ b/js/id/ui/radial_menu.js @@ -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');