summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:58:00 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:52 +0100
commit7240920afeb38fb12f6c0cacb1661b82bf09c1fc (patch)
tree50ec7c99452483ae4d2c0dee84a62aa02473cc32
parent2a0a85a09a7c476c8015a6a5f980833febc12d25 (diff)
downloadpatchage-7240920afeb38fb12f6c0cacb1661b82bf09c1fc.tar.gz
patchage-7240920afeb38fb12f6c0cacb1661b82bf09c1fc.tar.bz2
patchage-7240920afeb38fb12f6c0cacb1661b82bf09c1fc.zip
Store location passed in signal rather than the current one
In practice, these are the same, but this is the intent of the API.
-rw-r--r--src/PatchageModule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index c871036..31c30a8 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -117,8 +117,7 @@ PatchageModule::load_location()
void
PatchageModule::store_location(double x, double y)
{
- const Coord loc{get_x(), get_y()};
- _app->conf()->set_module_location(_name, _type, loc);
+ _app->conf()->set_module_location(_name, _type, {x, y});
}
void