[mapguide-commits] r6183 -
trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/Vector
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Oct 25 23:19:04 EDT 2011
Author: jng
Date: 2011-10-25 20:19:04 -0700 (Tue, 25 Oct 2011)
New Revision: 6183
Modified:
trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/Vector/VectorLayerStyleSectionCtrl.cs
Log:
#1833: Fix min/max scale display
Modified: trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/Vector/VectorLayerStyleSectionCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/Vector/VectorLayerStyleSectionCtrl.cs 2011-10-26 01:49:07 UTC (rev 6182)
+++ trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/Vector/VectorLayerStyleSectionCtrl.cs 2011-10-26 03:19:04 UTC (rev 6183)
@@ -263,14 +263,24 @@
_update = true;
if (vsc.Item.MinScale.HasValue)
+ {
cmbMinScale.Text = vsc.Item.MinScale.Value.ToString(CultureInfo.InvariantCulture);
+ }
else
+ {
cmbMinScale.SelectedIndex = 0;
+ cmbMinScale.Text = cmbMinScale.SelectedItem.ToString();
+ }
if (vsc.Item.MaxScale.HasValue)
+ {
cmbMaxScale.Text = vsc.Item.MaxScale.Value.ToString(CultureInfo.InvariantCulture);
+ }
else
+ {
cmbMaxScale.SelectedIndex = 0;
+ cmbMaxScale.Text = cmbMaxScale.SelectedItem.ToString();
+ }
grpScaleRange.Text = string.Format("{0} ({1})", Properties.Resources.ScaleRange, vsc.ScaleDisplayString);
grpScaleRange.Controls.Clear();
More information about the mapguide-commits
mailing list