You've already forked lazarus-ccr
Fix: TJDBGridControl AV in design mode
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2063 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -159,10 +159,13 @@ begin
|
||||
if Result <> nil then
|
||||
begin
|
||||
C := ColumnFromGridColumn(Column);
|
||||
if C <> nil then
|
||||
begin
|
||||
bs := C.ButtonStyle;
|
||||
aField := GetFieldFromGridColumn(Column);
|
||||
if (aField <> nil) and (bs = cbsAuto) then
|
||||
begin
|
||||
writeln(aField.DataType);
|
||||
case aField.DataType of
|
||||
ftSmallint, ftInteger:
|
||||
Result := integerDbGridControl.Editor(Self);
|
||||
@@ -182,11 +185,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TJDBGridControl.UpdateData;
|
||||
begin
|
||||
if not(Editor is TJStringCellEditor) then
|
||||
if not (Editor is TJStringCellEditor) then
|
||||
inherited UpdateData;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user