mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Plugin Host: Fixed a potential crash when creating a new document
This commit is contained in:
parent
b7a7563a59
commit
39ce151636
1 changed files with 3 additions and 2 deletions
|
|
@ -849,8 +849,9 @@ void GraphEditorPanel::changeListenerCallback (ChangeBroadcaster*)
|
|||
|
||||
void GraphEditorPanel::updateComponents()
|
||||
{
|
||||
for (auto* child : getChildren())
|
||||
if (auto* fc = dynamic_cast<FilterComponent*> (child))
|
||||
auto children = getChildren();
|
||||
for (auto child : children)
|
||||
if (auto* fc = dynamic_cast<FilterComponent*> (static_cast<Component*> (child)))
|
||||
fc->update();
|
||||
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue