mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:39:30 +02:00
LCL, fix hiding and then showing a dbgrid column (remained 0 width), bug reported by José Antonio Cuello
git-svn-id: trunk@27813 -
This commit is contained in:
parent
421f4f7909
commit
87f28a9497
@ -10260,6 +10260,8 @@ end;
|
|||||||
|
|
||||||
procedure TGridColumn.SetWidth(const AValue: Integer);
|
procedure TGridColumn.SetWidth(const AValue: Integer);
|
||||||
begin
|
begin
|
||||||
|
if (AValue=0) and not Visible then
|
||||||
|
exit;
|
||||||
if FWidth = nil then begin
|
if FWidth = nil then begin
|
||||||
if AValue=GetDefaultWidth then
|
if AValue=GetDefaultWidth then
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user