[fusion-commits] r2101 - sandbox/adsk/2.2gp/widgets/Theme/classes

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Mar 16 05:26:25 EDT 2010


Author: liuar
Date: 2010-03-16 05:26:25 -0400 (Tue, 16 Mar 2010)
New Revision: 2101

Modified:
   sandbox/adsk/2.2gp/widgets/Theme/classes/theme.php
Log:
Port Fix to adsk/2.2gp branch.
Fixed Ticket #371 Theme: Warning message pop-up when theme on map whose layer doesn't have feature class


Modified: sandbox/adsk/2.2gp/widgets/Theme/classes/theme.php
===================================================================
--- sandbox/adsk/2.2gp/widgets/Theme/classes/theme.php	2010-03-16 09:25:17 UTC (rev 2100)
+++ sandbox/adsk/2.2gp/widgets/Theme/classes/theme.php	2010-03-16 09:26:25 UTC (rev 2101)
@@ -53,7 +53,10 @@
             if((substr($layer->GetName(), 0, 1) != "_") && (substr(strtoupper($layer->GetFeatureSourceId()), 0, 7) != "SESSION"))
             {
                 $resId = new MgResourceIdentifier($layer->GetFeatureSourceId());
-                $schemaClass = explode(':', $layer->GetFeatureClassName());
+                $layerFeatureClassName = $layer->GetFeatureClassName();
+                if($layerFeatureClassName == "") 
+                    continue;
+                $schemaClass = explode(':', $layerFeatureClassName);
 
                 $classDef = $featureService->GetClassDefinition($resId, $schemaClass[0], $schemaClass[1]);
                 $propDef = $classDef->GetProperties()->GetItem($layer->GetFeatureGeometryName());



More information about the fusion-commits mailing list