mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 19:00:30 +02:00
LCL: controlcanvas: protect TControlCanvas.CreateHandle debugln with an IFDEF
git-svn-id: trunk@53274 -
This commit is contained in:
parent
6a74f2e274
commit
b8c9f6d510
@ -79,9 +79,11 @@ begin
|
||||
inherited CreateHandle
|
||||
else
|
||||
begin
|
||||
{$IFDEF VerboseCanvas}
|
||||
if not ControlIsPainting and
|
||||
(WidgetSet.GetLCLCapability(lcCanDrawOutsideOnPaint) = LCL_CAPABILITY_NO) then
|
||||
debugln(['TControlCanvas.CreateHandle WARNING: accessing the canvas of '+DbgSName(FControl)+' is not supported outside of paint message']);
|
||||
{$ENDIF}
|
||||
if (FDeviceContext = 0) then
|
||||
begin
|
||||
// access to window handle can cause another TControlCanvas.CreateHandle
|
||||
|
Loading…
Reference in New Issue
Block a user