SIGSEGV in TColumnTitle.GetDefaultCaption
Original Reporter info from Mantis: Petr-K
-
Reporter name:
Original Reporter info from Mantis: Petr-K
- Reporter name:
Description:
When DataLink is deactivating I'am saving grid columns settings.
Sometimes I get SIGSEGV in TColumnTitle.GetDefaultCaption.
I think, that there is an misstype.
Here is a little patch:
Index: lcl/dbgrids.pas
===================================================================
--- lcl/dbgrids.pas (revision 39991)
+++ lcl/dbgrids.pas (working copy)
@@ -3897,7 +3897,7 @@
with (Column as TColumn) do begin
if FieldName<>'' then begin
if FField<>nil then
- Result := Field.DisplayName
+ Result := FField.DisplayName
else
Result := Fieldname;
end else
Mantis conversion info:
- Mantis ID: 23810
- Version: 1.1 (SVN)
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46444 (#344ab1ef)
- Target version: 1.4