Fix a logical error in bounding circle computation. Fix #159.
This commit is contained in:
parent
661a09817a
commit
62b33680ac
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public class OsmNogoPolygon extends OsmNodeNamed
|
||||||
{
|
{
|
||||||
cxmin = p.x;
|
cxmin = p.x;
|
||||||
}
|
}
|
||||||
else if (p.x > cxmax)
|
if (p.x > cxmax)
|
||||||
{
|
{
|
||||||
cxmax = p.x;
|
cxmax = p.x;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OsmNogoPolygon extends OsmNodeNamed
|
||||||
{
|
{
|
||||||
cymin = p.y;
|
cymin = p.y;
|
||||||
}
|
}
|
||||||
else if (p.y > cymax)
|
if (p.y > cymax)
|
||||||
{
|
{
|
||||||
cymax = p.y;
|
cymax = p.y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue