LCL, do not check for default grid's column title, issue #16845

git-svn-id: trunk@27320 -
This commit is contained in:
jesus 2010-09-12 00:00:13 +00:00
parent c3c3c6425c
commit a1fc7a7bee

View File

@ -9725,9 +9725,7 @@ procedure TGridColumnTitle.SetCaption(const AValue: TCaption);
begin
if (FCaption=nil)or(AValue<>FCaption^) then begin
if FCaption<>nil then
StrDispose(FCaption)
else if (AValue=GetDefaultCaption) then
exit;
StrDispose(FCaption);
FCaption := StrNew(PChar(AValue));
FColumn.ColumnChanged;
end;