summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PatchCanvas.cpp')
-rw-r--r--src/gui/PatchCanvas.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index 936fb259..6061eeb2 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -290,9 +290,10 @@ PatchCanvas::build_plugin_menu()
void
PatchCanvas::build()
{
+ const Store::const_range kids = _app.store()->children_range(_patch);
+
// Create modules for nodes
- for (Store::const_iterator i = _app.store()->children_begin(_patch);
- i != _app.store()->children_end(_patch); ++i) {
+ for (Store::const_iterator i = kids.first; i != kids.second; ++i) {
SharedPtr<NodeModel> node = PtrCast<NodeModel>(i->second);
if (node && node->parent() == _patch)
add_node(node);