lcl: controlcanvas: fix TControlCanvas.CreateHandle debugln, issue #30003

git-svn-id: trunk@53252 -
This commit is contained in:
ondrej 2016-10-28 17:53:48 +00:00
parent 77add4e290
commit d0383990ca

View File

@ -79,7 +79,7 @@ begin
inherited CreateHandle inherited CreateHandle
else else
begin begin
if ControlIsPainting and if not ControlIsPainting and
(WidgetSet.GetLCLCapability(lcCanDrawOutsideOnPaint) = LCL_CAPABILITY_NO) then (WidgetSet.GetLCLCapability(lcCanDrawOutsideOnPaint) = LCL_CAPABILITY_NO) then
debugln(['TControlCanvas.CreateHandle WARNING: accessing the canvas of '+DbgSName(FControl)+' is not supported outside of paint message']); debugln(['TControlCanvas.CreateHandle WARNING: accessing the canvas of '+DbgSName(FControl)+' is not supported outside of paint message']);
if (FDeviceContext = 0) then if (FDeviceContext = 0) then