diff options
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 4c662f0..ad0feb1 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -432,8 +432,11 @@ Patchage::zoom_changed() void Patchage::update_state() { - for (ModuleMap::iterator i = _canvas->modules().begin(); i != _canvas->modules().end(); ++i) - (*i).second->load_location(); + for (ItemMap::iterator i = _canvas->items().begin(); i != _canvas->items().end(); ++i) { + SharedPtr<Module> module = PtrCast<Module>((*i).second); + if (module) + module->load_location(); + } //cerr << "[Patchage] Resizing window: (" << _state_manager->get_window_size().x // << "," << _state_manager->get_window_size().y << ")" << endl; |