#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 , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 17 years ago
Milestone: | 2.1 → 2.0 |
---|
Note:
See TracTickets
for help on using tickets.
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.