[mapguide-trac] #420: Stylization: Fix handling of default values

MapGuide Open Source trac_mapguide at osgeo.org
Mon Feb 11 15:58:53 EST 2008


#420: Stylization:  Fix handling of default values
-------------------------------+--------------------------------------------
 Reporter:  louisewatson       |         Owner:  louisewatson
     Type:  defect             |        Status:  closed      
 Priority:  medium             |     Milestone:  2.1         
Component:  Rendering Service  |       Version:  2.0.0       
 Severity:  major              |    Resolution:  fixed       
 Keywords:                     |   External_id:  1018567     
-------------------------------+--------------------------------------------
Changes (by louisewatson):

  * status:  assigned => closed
  * resolution:  => fixed

Comment:

 The fix is to store the appropriate default value in each of the data
 structures contained in SE_ExpressionBase.h.  These are SE_Double,
 SE_String, SE_Boolean, etc.  Now when the structure's evaluate function is
 called, if the expression does not yield a valid value, the default value
 is used.

 Note that the changes to SE_String were more extensive in order to insure
 that memory was used properly and efficiently.  To get the current value,
 getValue() should be called.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/420#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list