mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 20:19:21 +02:00
LCL: fix the issue #19685 that painting TGraphicsControl on Designer Overlay DC
1. the issue only occurs at design time 2. the issue is that Control should not be painted on Designer Overlay Layer
This commit is contained in:
parent
3f43638383
commit
46b4ce12e9
@ -4904,7 +4904,8 @@ begin
|
||||
|
||||
//DebugLn('[TWinControl.PaintControls] ',Name,':',ClassName,' DC=',DbgS(DC,8));
|
||||
if (csDestroying in ComponentState)
|
||||
or ((DC=0) and (not HandleAllocated)) then
|
||||
or ((DC=0) and (not HandleAllocated))
|
||||
or WidgetSet.IsDesignerDC(self.Handle,DC) then
|
||||
exit;
|
||||
|
||||
{$IFDEF VerboseDsgnPaintMsg}
|
||||
|
Loading…
Reference in New Issue
Block a user