From 7240920afeb38fb12f6c0cacb1661b82bf09c1fc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:58:00 +0100 Subject: Store location passed in signal rather than the current one In practice, these are the same, but this is the intent of the API. --- src/PatchageModule.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1