Ticket #15625 (portneeded defect: port to stable)
Problems with SetAttribute() in wxFloatProperty with SpinCtrl, MotionSpin for specific Min, Max values
|Reported by:||StepanHrbek||Owned by:|
|Keywords:||wxPropertyGrid wxFloatProperty SpinCtrl attributes||Cc:|
let there be wxFloatProperty with
When I drag spinbutton down until property value reaches zero, wx asserts (src/common/wincmn.cpp 3287).
When I click spinbutton down until property value reaches zero, close "Property error" message and then move mouse over spinbutton without clicking it, wx asserts (src/common/wincmn.cpp 461).
There is no assert if "Min" is 0 or 1e-2.
Tested with MSVC, svn revision 75075.
After looking into bool NumericValidation() in src/propgrid/props.cpp, I can't spot what's wrong. I see suspicious but probably innocent wxINT64_MIN applied even if T is double; and suspicious "value = max - (min-value)" which might be wrong when value gets far below min (new value stays outside <min,max> range); but still nothing that would explain why 1e-20 is bad and 1e-2 is ok.