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
else
begin
if ControlIsPainting and
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']);
if (FDeviceContext = 0) then