mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 23:29:50 +02:00
Setting column's title is now case sensitive (bug #1229)
git-svn-id: trunk@7848 -
This commit is contained in:
parent
e0786a2af9
commit
a9a3aa77de
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user