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 25a8c2a + d6c0b93 commit 6f3e9b7Copy full SHA for 6f3e9b7
ICSharpCode.AvalonEdit/CodeCompletion/CompletionWindowBase.cs
@@ -331,6 +331,9 @@ protected void SetPosition(TextViewPosition position)
331
protected void UpdatePosition()
332
{
333
TextView textView = this.TextArea.TextView;
334
+ if (PresentationSource.FromVisual(textView) == null)
335
+ return;
336
+
337
// PointToScreen returns device dependent units (physical pixels)
338
Point location = textView.PointToScreen(visualLocation - textView.ScrollOffset);
339
Point locationTop = textView.PointToScreen(visualLocationTop - textView.ScrollOffset);
0 commit comments