mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-25 00:51:36 +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
|
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user