1
0
This commit is contained in:
2019-05-18 19:47:59 +02:00
parent ba2c421e21
commit 683bb99783

View File

@@ -53,15 +53,11 @@ namespace TMI_practicum
{
Circle other = null;
Circle other2 = null;
try
{
other = upper? active.FindSuccessor(new SegmentKey(e.X, e.Circle.Y, SegmentKey.SegmentType.Upper, e.GetHashCode()))
:
active.FindPredecessor(new SegmentKey(e.X, e.Circle.Y, SegmentKey.SegmentType.Bottom, e.GetHashCode()));
other2 = upper? active.FindPredecessor(new SegmentKey(e.X, e.Circle.Y, SegmentKey.SegmentType.Upper, e.GetHashCode()))
:
active.FindSuccessor(new SegmentKey(e.X, e.Circle.Y, SegmentKey.SegmentType.Bottom, e.GetHashCode()));
}
catch (KeyNotFoundException)
{