Browse Source

Fix RackWidget::setModulePosForce.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
7bde284dbf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/RackWidget.cpp

+ 2
- 2
src/app/RackWidget.cpp View File

@@ -480,8 +480,8 @@ void RackWidget::setModulePosForce(ModuleWidget *mw, math::Vec pos) {
};

// Collect modules to the left and right of `mw`
std::set<widget::Widget*> leftModules;
std::set<widget::Widget*> rightModules;
std::set<widget::Widget*, decltype(cmp)> leftModules(cmp);
std::set<widget::Widget*, decltype(cmp)> rightModules(cmp);
for (widget::Widget *w2 : moduleContainer->children) {
if (w2 == mw)
continue;


Loading…
Cancel
Save