mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Disable the effect of setPaintingIsUnclipped on components with children
This commit is contained in:
parent
165d8b0ecd
commit
87a4ab4a78
2 changed files with 3 additions and 3 deletions
|
|
@ -1997,7 +1997,7 @@ void Component::paintComponentAndChildren (Graphics& g)
|
|||
{
|
||||
auto clipBounds = g.getClipBounds();
|
||||
|
||||
if (flags.dontClipGraphicsFlag)
|
||||
if (flags.dontClipGraphicsFlag && getNumChildComponents() == 0)
|
||||
{
|
||||
paint (g);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue