[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-commits
Subject:    [mapguide-commits] r3285 - trunk/Tools/Maestro/MaestroAPI
From:       svn_mapguide () osgeo ! org
Date:       2008-08-23 10:19:09
Message-ID: 20080823101909.984D1E00692 () lists ! osgeo ! org
[Download RAW message or body]

Author: ksgeograf
Date: 2008-08-23 06:19:09 -0400 (Sat, 23 Aug 2008)
New Revision: 3285

Modified:
   trunk/Tools/Maestro/MaestroAPI/ServerConnectionBase.cs
Log:
Micro fix to close issue #636.

Modified: trunk/Tools/Maestro/MaestroAPI/ServerConnectionBase.cs
===================================================================
--- trunk/Tools/Maestro/MaestroAPI/ServerConnectionBase.cs	2008-08-23 10:15:10 UTC \
                (rev 3284)
+++ trunk/Tools/Maestro/MaestroAPI/ServerConnectionBase.cs	2008-08-23 10:19:09 UTC \
(rev 3285) @@ -1342,17 +1342,17 @@
 							}
 							else if (o as LineTypeStyleType != null)
 							{
-								if (((LineTypeStyleType)vsc.Items[i]).LineRule != null)
-								{
-									if ( ((LineTypeStyleType)vsc.Items[i]).LineRule.Count == 0 )
-										vsc.Items.RemoveAt(i);
-									else
-										foreach(LineRuleType lr in ((LineTypeStyleType)vsc.Items[i]).LineRule)
-										{
-											if (lr.LegendLabel == null)
-												lr.LegendLabel = "";
-											if (lr.Items != null)
-											{
+                                if (((LineTypeStyleType)vsc.Items[i]).LineRule != \
null) +                                {
+                                    if \
(((LineTypeStyleType)vsc.Items[i]).LineRule.Count == 0) +                             \
vsc.Items.RemoveAt(i); +                                    else
+                                        foreach (LineRuleType lr in \
((LineTypeStyleType)vsc.Items[i]).LineRule) +                                        \
{ +                                            if (lr.LegendLabel == null)
+                                                lr.LegendLabel = "";
+                                            if (lr.Items != null)
+                                            {
                                                 foreach (StrokeType st in lr.Items)
                                                 {
                                                     if (version1)
@@ -1363,9 +1363,11 @@
                                                     if \
                (string.IsNullOrEmpty(st.Thickness))
                                                         st.Thickness = "0";
                                                 }
-											}
-										}
-								}
+                                            }
+                                        }
+                                }
+                                else
+                                    vsc.Items.RemoveAt(i);
 							}
 							else if (o as AreaTypeStyleType != null)
 							{

_______________________________________________
mapguide-commits mailing list
mapguide-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic