Opened 17 years ago
Closed 17 years ago
#1389 closed defect (fixed)
Align in circle buggy when way selected
Reported by: | anonymous | Owned by: | framm |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
Align nodes in circle handles either a number of nodes or a way. However with a closed way, the result is incorrect. This is annoying since most round features are drawn as closed ways (a way that surrounds a closed area).
The reason appears to be that one node (the "start node"?) appears twice in the representation of a closed way and thus gets double weight in the center calculation and subsequently gets moved twice.
To reproduce:
1) Draw any closed way with 4 edges.
2) Select the four individual corner nodes and press "Align in circle" repeatedly. The shape will converge correctly to a rectangle.
3) Now deselect the nodes and select the way and press "Align in circle" again. The shape should remain unchanged, but in stead it is distorted with one node moved far away.
Tested with revision 732
Fixed in r749.