mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +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);
|
procedure TGridColumnTitle.SetCaption(const AValue: string);
|
||||||
begin
|
begin
|
||||||
if (FCaption=nil)or(CompareText(AValue, FCaption^)<>0) then begin
|
if (FCaption=nil)or(AValue<>FCaption^) then begin
|
||||||
if FCaption<>nil then
|
if FCaption<>nil then
|
||||||
StrDispose(FCaption)
|
StrDispose(FCaption)
|
||||||
else if CompareText(AValue, GetDefaultCaption) = 0 then
|
else if (AValue=GetDefaultCaption) then
|
||||||
exit;
|
exit;
|
||||||
FCaption := StrNew(PChar(AValue));
|
FCaption := StrNew(PChar(AValue));
|
||||||
FColumn.ColumnChanged;
|
FColumn.ColumnChanged;
|
||||||
|
Loading…
Reference in New Issue
Block a user