[mapguide-commits] r7293 - trunk/Tools/Maestro/Maestro.Base/UI

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jan 8 19:21:25 PST 2013


Author: jng
Date: 2013-01-08 19:21:25 -0800 (Tue, 08 Jan 2013)
New Revision: 7293

Modified:
   trunk/Tools/Maestro/Maestro.Base/UI/ResourcePropertiesDialog.cs
Log:
#2205: Filter out null/empty resource ids in the references tab

Modified: trunk/Tools/Maestro/Maestro.Base/UI/ResourcePropertiesDialog.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/UI/ResourcePropertiesDialog.cs	2013-01-08 07:37:15 UTC (rev 7292)
+++ trunk/Tools/Maestro/Maestro.Base/UI/ResourcePropertiesDialog.cs	2013-01-09 03:21:25 UTC (rev 7293)
@@ -942,10 +942,20 @@
             List<string> l2 = ((object[])e.Result)[1] as List<string>;
 
             foreach (string s in l2)
+            {
+                if (string.IsNullOrEmpty(s))
+                    continue;
+
                 OutReferenceList.Items.Add(s, m_icons.GetImageIndexFromResourceID(s));
+            }
 
             foreach (string s in l1)
+            {
+                if (string.IsNullOrEmpty(s))
+                    continue;
+
                 InReferenceList.Items.Add(s, m_icons.GetImageIndexFromResourceID(s));
+            }
 
             m_hasLoadedRefs = true;
         }



More information about the mapguide-commits mailing list