We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f22a5 commit d6c0b93Copy full SHA for d6c0b93
1 file changed
ICSharpCode.AvalonEdit/CodeCompletion/CompletionWindowBase.cs
@@ -332,6 +332,9 @@ protected void SetPosition(TextViewPosition position)
332
protected void UpdatePosition()
333
{
334
TextView textView = this.TextArea.TextView;
335
+ if (PresentationSource.FromVisual(textView) == null)
336
+ return;
337
+
338
// PointToScreen returns device dependent units (physical pixels)
339
Point location = textView.PointToScreen(visualLocation - textView.ScrollOffset);
340
Point locationTop = textView.PointToScreen(visualLocationTop - textView.ScrollOffset);
0 commit comments