From 7bde284dbfbe9591333b3bbf97a358abfd3ddae7 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 24 Apr 2019 22:25:28 -0400 Subject: [PATCH] Fix RackWidget::setModulePosForce. --- src/app/RackWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/RackWidget.cpp b/src/app/RackWidget.cpp index a78d966d..7d8252de 100644 --- a/src/app/RackWidget.cpp +++ b/src/app/RackWidget.cpp @@ -480,8 +480,8 @@ void RackWidget::setModulePosForce(ModuleWidget *mw, math::Vec pos) { }; // Collect modules to the left and right of `mw` - std::set leftModules; - std::set rightModules; + std::set leftModules(cmp); + std::set rightModules(cmp); for (widget::Widget *w2 : moduleContainer->children) { if (w2 == mw) continue;