mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 17:09:10 +02:00
LCL: TGraphicControl: always call FreeHandle - HandleAllocated doesn't take FDeviceContext into consideration. Issue #30003, patch by Michl
git-svn-id: trunk@53253 -
This commit is contained in:
parent
d0383990ca
commit
643cbe0475
@ -94,15 +94,13 @@ procedure TGraphicControl.DoOnChangeBounds;
|
||||
begin
|
||||
inherited DoOnChangeBounds;
|
||||
// reset canvas handle in next access
|
||||
if Canvas.HandleAllocated then
|
||||
TControlCanvas(Canvas).FreeHandle;
|
||||
TControlCanvas(Canvas).FreeHandle;
|
||||
end;
|
||||
|
||||
procedure TGraphicControl.DoOnParentHandleDestruction;
|
||||
begin
|
||||
inherited;
|
||||
if Canvas.HandleAllocated then
|
||||
TControlCanvas(Canvas).FreeHandle;
|
||||
TControlCanvas(Canvas).FreeHandle;
|
||||
end;
|
||||
|
||||
procedure TGraphicControl.CMCursorChanged(var Message: TLMessage);
|
||||
|
Loading…
Reference in New Issue
Block a user