Browse Source

Fix #3437: InvalidOperationException when right-clicking on popupTooltip.

pull/3443/head
Siegfried Pammer 4 months ago
parent
commit
247f161eb3
  1. 2
      ILSpy/TextView/DecompilerTextView.cs

2
ILSpy/TextView/DecompilerTextView.cs

@ -341,7 +341,7 @@ namespace ICSharpCode.ILSpy.TextView
void TextEditorMouseMove(object sender, MouseEventArgs e) void TextEditorMouseMove(object sender, MouseEventArgs e)
{ {
if (popupToolTip != null)
if (popupToolTip != null && PresentationSource.FromVisual(popupToolTip.Child) != null)
{ {
double distanceToPopup = GetDistanceToPopup(e); double distanceToPopup = GetDistanceToPopup(e);
if (distanceToPopup > distanceToPopupLimit) if (distanceToPopup > distanceToPopupLimit)

Loading…
Cancel
Save