MG: fixed removing TSpeedButton

git-svn-id: trunk@2391 -
This commit is contained in:
lazarus 2002-08-17 23:41:19 +00:00
parent 1057c266a2
commit 41ae32b3ad

View File

@ -59,7 +59,7 @@ end;
------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
destructor TSpeedbutton.Destroy; destructor TSpeedbutton.Destroy;
begin begin
FGlyph.Free; FreeAndNil(FGlyph);
inherited Destroy; inherited Destroy;
end; end;
@ -290,6 +290,7 @@ begin
else FState := bsUp; else FState := bsUp;
end; end;
end; end;
if FGlyph=nil then exit;
PaintRect := Bounds(Left, Top, Width, Height); PaintRect := Bounds(Left, Top, Width, Height);
// PaintRect := Rect(0, 0, Width, Height); // PaintRect := Rect(0, 0, Width, Height);
@ -656,6 +657,9 @@ end;
{ ============================================================================= { =============================================================================
$Log$ $Log$
Revision 1.25 2002/09/06 16:14:19 lazarus
MG: fixed removing TSpeedButton
Revision 1.24 2002/09/03 22:31:25 lazarus Revision 1.24 2002/09/03 22:31:25 lazarus
MG: removed old workaround in TSpeedButton MG: removed old workaround in TSpeedButton