[Monodevelop-patches-list] r2036 - trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Tue Nov 23 22:48:25 EST 2004


Author: alp
Date: 2004-11-23 22:48:25 -0500 (Tue, 23 Nov 2004)
New Revision: 2036

Modified:
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/DeclarationViewWindow.cs
Log:
Handle undocumented items properly.


Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/DeclarationViewWindow.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/DeclarationViewWindow.cs	2004-11-24 01:14:38 UTC (rev 2035)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/DeclarationViewWindow.cs	2004-11-24 03:48:25 UTC (rev 2036)
@@ -25,10 +25,19 @@
 		public string DescriptionMarkup
 		{
 			get {
-				return headlabel.Text + "\n" + bodylabel.Text;
+			 	if (bodylabel.Text == "")
+					return headlabel.Text;
+				else
+					return headlabel.Text + "\n" + bodylabel.Text;
 			}
 			
 			set {
+				if (value == null) {
+					headlabel.Markup = "";
+					bodylabel.Markup = "";
+					return;
+				}
+
 				string[] parts = value.Split (newline, 2);
 				headlabel.Markup = parts[0].Trim (whitespace);
 				bodylabel.Markup = (parts.Length == 2 ? parts[1].Trim (whitespace) : String.Empty);




More information about the Monodevelop-patches-list mailing list