diff options
author | David Robillard <d@drobilla.net> | 2007-03-12 18:13:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-12 18:13:03 +0000 |
commit | 47372f00cc6fe39f65594aa6edf6544157e94ce7 (patch) | |
tree | e1c7a9b1b3d6fe07631a05f3410ea2fa4b21e193 /src/Patchage.cpp | |
parent | 2834b233eedf0c66f65ac8169264d8359d8fc7c6 (diff) | |
download | patchage-47372f00cc6fe39f65594aa6edf6544157e94ce7.tar.gz patchage-47372f00cc6fe39f65594aa6edf6544157e94ce7.tar.bz2 patchage-47372f00cc6fe39f65594aa6edf6544157e94ce7.zip |
Removed name-based interface for FlowCanvas (using the view as a model = evil), related performance improvements (especially for Machina).
Updates for FlowCanvas API changes.
Machina SMF import performance improvements (temporarily disabled node labels).
git-svn-id: http://svn.drobilla.net/lad/patchage@356 a436a847-0d15-0410-975c-d299462d15a1
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 |