Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#420 closed defect (fixed)

Stylization: Fix handling of default values

Reported by: louisewatson Owned by: louisewatson
Priority: medium Milestone: 2.0
Component: Rendering Service Version: 2.0.0
Severity: major Keywords:
Cc: External ID: 1018567

Description

In SE_ExpressionBase, there are structures to manage all of the basic data types used in stylization. These structures are not managing default values properly.

Change History (3)

comment:1 by louisewatson, 17 years ago

Owner: changed from Louise Watson to louisewatson
Status: newassigned

comment:2 by louisewatson, 17 years ago

Resolution: fixed
Status: assignedclosed

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.

comment:3 by tomfukushima, 17 years ago

Milestone: 2.12.0
Note: See TracTickets for help on using tickets.