mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-24 01:20:07 +02:00
LCL, grids, fix Title.Caption is not changed if new value is one char and current caption value starts with the same char, seems FCaption^ is not anymore treated as a string but as a char)
git-svn-id: trunk@45343 -
This commit is contained in:
parent
ec6d63f4a5
commit
f303a96881
@ -10841,7 +10841,7 @@ end;
|
||||
|
||||
procedure TGridColumnTitle.SetCaption(const AValue: TCaption);
|
||||
begin
|
||||
if (FCaption=nil)or(AValue<>FCaption^) then begin
|
||||
if (FCaption=nil)or(AValue<>StrPas(FCaption)) then begin
|
||||
if FCaption<>nil then
|
||||
StrDispose(FCaption);
|
||||
FCaption := StrNew(PChar(AValue));
|
||||
|
Loading…
Reference in New Issue
Block a user