From a89751b639581d2c0d14f6cd05c4af3340e6294f Mon Sep 17 00:00:00 2001 From: Markus Palme Date: Tue, 25 Oct 2005 18:06:14 +0000 Subject: [PATCH] fixed problem with disposed window git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@625 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs index 33601ac661..02fb36ced1 100644 --- a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs +++ b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs @@ -309,7 +309,7 @@ namespace ICSharpCode.TextEditor public void SetToolTip(string text) { - if (toolTip == null) toolTip = new DeclarationViewWindow(this.FindForm()); + if (toolTip == null || toolTip.IsDisposed) toolTip = new DeclarationViewWindow(this.FindForm()); toolTipSet = (text != null); if (oldToolTip == text) return;