No checking of GetGrid() result value in wxPGProperty class
|Reported by:||anhsoft||Owned by:||AW|
If I created a property object (eg wxEnumProperty), but not yet appended it to grid do calling the InsertChoice() or DeleteChoice(), I get this issue, because inside these members don't checking the GetGrid() result value, which surely equal NULL.
The same issue has other functions: GetDisplayInfo, GetValueAsString, SetValueInEvent, GetCell, SetValueImage, GetY, GetItemAtY, which easy to find by 'GetGrid()' keyword.
The attached patch may fix this issue?
Change History (18)
Changed 4 months ago by anhsoft
comment:7 Changed 4 months ago by AW
- Owner set to AW
- Resolution set to fixed
- Status changed from new to closed