mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-23 02:41:31 +02:00
lcl: controlcanvas: fix TControlCanvas.CreateHandle debugln, issue #30003
git-svn-id: trunk@53252 -
This commit is contained in:
parent
77add4e290
commit
d0383990ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user