We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 113d1f1 + 3dbd960 commit 6f24c1dCopy full SHA for 6f24c1d
ICSharpCode.AvalonEdit/Editing/TextAreaAutomationPeer.cs
@@ -114,8 +114,11 @@ public override object GetPattern(PatternInterface patternInterface)
114
return this;
115
if (patternInterface == PatternInterface.Scroll) {
116
TextEditor editor = TextArea.GetService(typeof(TextEditor)) as TextEditor;
117
- if (editor != null)
118
- return FromElement(editor).GetPattern(patternInterface);
+ if (editor != null) {
+ var fromElement = FromElement(editor);
119
+ if (fromElement != null)
120
+ return fromElement.GetPattern(patternInterface);
121
+ }
122
}
123
return base.GetPattern(patternInterface);
124
0 commit comments