From 247f161eb35b9159705a92c73c8cf83d0c5e71e4 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 29 Mar 2025 21:39:52 +0100 Subject: [PATCH] Fix #3437: InvalidOperationException when right-clicking on popupTooltip. --- ILSpy/TextView/DecompilerTextView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs index dc0d5edae..3192c553f 100644 --- a/ILSpy/TextView/DecompilerTextView.cs +++ b/ILSpy/TextView/DecompilerTextView.cs @@ -341,7 +341,7 @@ namespace ICSharpCode.ILSpy.TextView void TextEditorMouseMove(object sender, MouseEventArgs e) { - if (popupToolTip != null) + if (popupToolTip != null && PresentationSource.FromVisual(popupToolTip.Child) != null) { double distanceToPopup = GetDistanceToPopup(e); if (distanceToPopup > distanceToPopupLimit)