diff options
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index ce41c47..0e73a37 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -437,10 +437,10 @@ Patchage::zoom_changed() void Patchage::update_state() { - for (ItemMap::iterator i = _canvas->items().begin(); i != _canvas->items().end(); ++i) { - SharedPtr<Module> module = PtrCast<Module>((*i).second); + for (ItemList::iterator i = _canvas->items().begin(); i != _canvas->items().end(); ++i) { + SharedPtr<Module> module = PtrCast<Module>(*i); if (module) - module->load_location(); + module->load_location(); } //cerr << "[Patchage] Resizing window: (" << _state_manager->get_window_size().x |