Setting column's title is now case sensitive (bug #1229)

git-svn-id: trunk@7848 -
This commit is contained in:
jesus 2005-09-28 17:19:51 +00:00
parent e0786a2af9
commit a9a3aa77de

View File

@ -6982,10 +6982,10 @@ end;
procedure TGridColumnTitle.SetCaption(const AValue: string);
begin
if (FCaption=nil)or(CompareText(AValue, FCaption^)<>0) then begin
if (FCaption=nil)or(AValue<>FCaption^) then begin
if FCaption<>nil then
StrDispose(FCaption)
else if CompareText(AValue, GetDefaultCaption) = 0 then
else if (AValue=GetDefaultCaption) then
exit;
FCaption := StrNew(PChar(AValue));
FColumn.ColumnChanged;