diff options
author | David Robillard <d@drobilla.net> | 2008-08-02 20:12:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-02 20:12:58 +0000 |
commit | 925022321b8f7dba8b10993a9cd32c0cc0b45e0d (patch) | |
tree | ad2dde7d67af4d9626291298cffe0ba3f4941d59 /src/PatchageModule.hpp | |
parent | f7eab5b56d8b77b3e0cd0b42ff5a94aae69942ca (diff) | |
download | patchage-925022321b8f7dba8b10993a9cd32c0cc0b45e0d.tar.gz patchage-925022321b8f7dba8b10993a9cd32c0cc0b45e0d.tar.bz2 patchage-925022321b8f7dba8b10993a9cd32c0cc0b45e0d.zip |
Apply module split restoration patch from Nedko.
git-svn-id: http://svn.drobilla.net/lad/patchage@1317 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.hpp')
-rw-r--r-- | src/PatchageModule.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp index 8828fcc..c8878aa 100644 --- a/src/PatchageModule.hpp +++ b/src/PatchageModule.hpp @@ -68,9 +68,9 @@ public: if (!canvas) return; - Coord loc = _app->state_manager()->get_module_location(_name, _type); + Coord loc; - if (loc.x != -1) + if (_app->state_manager()->get_module_location(_name, _type, loc)) move_to(loc.x, loc.y); else move_to((canvas->width()/2) - 100 + rand() % 400, @@ -78,7 +78,7 @@ public: } virtual void store_location() { - Coord loc = { property_x().get_value(), property_y().get_value() }; + Coord loc(property_x().get_value(), property_y().get_value()); _app->state_manager()->set_module_location(_name, _type, loc); } |