View Revisions: Issue #32623

Summary 0032623: IDE crash on opening Tools, Options, User Defined Markup
Revision 2017-10-29 11:01 by Juha Manninen
Description On MacOSX/Carbon, Tools, Options, User Defined Markup crashes the IDE.
Investigating this it seems the crash occurs in TCustomGrid.EditorPos because a bad value (from an unset variable) is used in
FEditor.BoundsRect := CellR.
I think the grid is empty at the time of the call, so CellR:=CellRect(FCol,FRow); simply does not set CellR. The attached patch is one possible workaround, forcing sane values. (An alternative aproach would be to act on the fail returns in ColRowToOffset.)
Revision 2017-10-29 09:00 by C Western
Description On MacOSX/Carbon, Tools, Options, User Defined Markup crashes the IDE.
Investigating this it seems the crash occurs in TCustomGrid.EditorPos because a bad value (from an unset variable) is used in
FEditor.BoundsRect := CellR.
I think the grid is empty at the time of the call,
so CellR:=CellRect(FCol,FRow); simply does not set CellR. The attached patch is
one possible workaround, forcing sane values. (An alternative aproach would be t
o act on the fail returns in ColRowToOffset.)