mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 07:08:35 +02:00
LCL: TControlCanvas: do not flood terminal about painting outside of paint event for widgetsets which actually supports painting outside of paint event.
git-svn-id: trunk@43443 -
This commit is contained in:
parent
0d9f12f364
commit
a54cbc502f
@ -79,7 +79,8 @@ begin
|
||||
inherited CreateHandle
|
||||
else
|
||||
begin
|
||||
if ControlIsPainting then
|
||||
if 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
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user