[mapguide-commits] r5570 - sandbox/maestro-3.0/Maestro.Editors/LayerDefinition/Raster

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Feb 28 04:46:21 EST 2011


Author: jng
Date: 2011-02-28 01:46:21 -0800 (Mon, 28 Feb 2011)
New Revision: 5570

Modified:
   sandbox/maestro-3.0/Maestro.Editors/LayerDefinition/Raster/RasterLayerAdvancedSectionCtrl.cs
Log:
Some small fixes for the Raster Layer editor, to properly attach/detach surface and hillshade style elements

Modified: sandbox/maestro-3.0/Maestro.Editors/LayerDefinition/Raster/RasterLayerAdvancedSectionCtrl.cs
===================================================================
--- sandbox/maestro-3.0/Maestro.Editors/LayerDefinition/Raster/RasterLayerAdvancedSectionCtrl.cs	2011-02-28 07:20:29 UTC (rev 5569)
+++ sandbox/maestro-3.0/Maestro.Editors/LayerDefinition/Raster/RasterLayerAdvancedSectionCtrl.cs	2011-02-28 09:46:21 UTC (rev 5570)
@@ -137,15 +137,22 @@
             }
             else
             {
-                _init = true;
-                _colorStyle.BrightnessFactor = null;
-                _colorStyle.ContrastFactor = null;
-                _colorStyle.TransparencyColor = null;
+                try
+                {
+                    _init = true;
+                    _colorStyle.BrightnessFactor = null;
+                    _colorStyle.ContrastFactor = null;
+                    _colorStyle.TransparencyColor = null;
 
-                txtBrightnessFactor.Enabled = txtContrastFactor.Enabled = cmbTransparencyColor.Enabled = false;
-                //Detach
-                EnableSurface.Checked = false;
-                EnableHillshade.Checked = false;
+                    txtBrightnessFactor.Enabled = txtContrastFactor.Enabled = cmbTransparencyColor.Enabled = false;
+
+                    //Detach
+                    EnableSurface.Checked = false;
+                    EnableHillshade.Checked = false;
+                    _colorStyle.HillShade = null;
+                    _activeRange.SurfaceStyle = null;
+                }
+                catch { _init = false; }
             }
         }
 



More information about the mapguide-commits mailing list