[mapguide-commits] r7294 - branches/maestro-4.0.x/Maestro.Base/UI
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Jan 8 20:23:29 PST 2013
Author: jng
Date: 2013-01-08 20:23:29 -0800 (Tue, 08 Jan 2013)
New Revision: 7294
Modified:
branches/maestro-4.0.x/Maestro.Base/UI/ResourcePropertiesDialog.cs
Log:
#2205: Filter out null/empty resource ids in the references tab
Modified: branches/maestro-4.0.x/Maestro.Base/UI/ResourcePropertiesDialog.cs
===================================================================
--- branches/maestro-4.0.x/Maestro.Base/UI/ResourcePropertiesDialog.cs 2013-01-09 03:21:25 UTC (rev 7293)
+++ branches/maestro-4.0.x/Maestro.Base/UI/ResourcePropertiesDialog.cs 2013-01-09 04:23:29 UTC (rev 7294)
@@ -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