fix little bug in suggested by me code

git-svn-id: trunk@13634 -
This commit is contained in:
paul 2008-01-05 17:06:06 +00:00
parent 5f86a321a7
commit f48d445586
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ end;
Destructor for the class.
------------------------------------------------------------------------------}
Destructor TCustomControl.Destroy;
destructor TCustomControl.Destroy;
begin
FCanvas.Free;
FCanvas:=nil;

View File

@ -4189,7 +4189,7 @@ begin
if DC = 0 then
DC := BeginPaint(Handle, PS);
if FDockSite and FUseDockManager then
if FDockSite and FUseDockManager and Assigned(FDockManager) then
FDockManager.PaintSite(DC);
try