Skip to content

Commit 9f68647

Browse files
authored
Merge pull request #221 from miroiu/fix/220-connection-overrides
Fixed overrides of arrowhead virtual methods not working for connections
2 parents 44c3164 + fb98d6e commit 9f68647

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
> - Added AsRef extension method to InputGesture to convert it to an InputGestureRef
88
> - Bugfixes:
99
> - Fixed an issue where the gesture used for EditorGestures.Editor.SelectAll extracted from the ApplicationCommands was assumed to be a KeyGesture
10+
> - Fixed overrides of DrawDefaultArrowhead and DrawDirectionalArrowheadGeometry virtual methods not working in subclasses of the built in connections
1011
1112
#### **Version 7.0.3**
1213

Nodify/Connections/CircuitConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected override void DrawDirectionalArrowsGeometry(StreamGeometryContext cont
8282
var (segment, to) = InterpolateLine(p0, p1, p2, t);
8383

8484
var direction = segment.SegmentStart - segment.SegmentEnd;
85-
base.DrawDirectionalArrowheadGeometry(context, direction, to);
85+
DrawDirectionalArrowheadGeometry(context, direction, to);
8686
}
8787
}
8888

Nodify/Connections/Connection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected override void DrawDirectionalArrowsGeometry(StreamGeometryContext cont
4242
var to = InterpolateCubicBezier(p0, p1, p2, p3, t);
4343
var direction = GetBezierTangent(p0, p1, p2, p3, t);
4444

45-
base.DrawDirectionalArrowheadGeometry(context, direction, to);
45+
DrawDirectionalArrowheadGeometry(context, direction, to);
4646
}
4747
}
4848

Nodify/Connections/LineConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected override void DrawDefaultArrowhead(StreamGeometryContext context, Poin
6868
}
6969
else
7070
{
71-
base.DrawDefaultArrowhead(context, source, target, arrowDirection, orientation);
71+
DrawDefaultArrowhead(context, source, target, arrowDirection, orientation);
7272
}
7373
}
7474

@@ -83,7 +83,7 @@ protected override void DrawDirectionalArrowsGeometry(StreamGeometryContext cont
8383
double t = (spacing * i + DirectionalArrowsOffset).WrapToRange(0d, 1d);
8484
var to = InterpolateLineSegment(p0, p1, t);
8585

86-
base.DrawDirectionalArrowheadGeometry(context, direction, to);
86+
DrawDirectionalArrowheadGeometry(context, direction, to);
8787
}
8888
}
8989

Nodify/Connections/StepConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected override void DrawDirectionalArrowsGeometry(StreamGeometryContext cont
163163
var (segment, to) = InterpolateLine(p0, p1, p2, p3, t);
164164

165165
var direction = segment.SegmentStart - segment.SegmentEnd;
166-
base.DrawDirectionalArrowheadGeometry(context, direction, to);
166+
DrawDirectionalArrowheadGeometry(context, direction, to);
167167
}
168168
}
169169

0 commit comments

Comments
 (0)