Skip to content
Snippets Groups Projects
Commit 49e2fb8f authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

MaterialInplaceForm: magnetization UI: fix ref to temp object

parent 4fb25764
No related branches found
No related tags found
1 merge request!1162rm DoubleDescriptor from code
......@@ -113,11 +113,10 @@ void MaterialInplaceForm::createWidgets()
}
// -- Create UI for magnetization vector
VectorProperty mag = material->magnetization();
const auto setNewValue = [this](double value, DoubleProperty& d) {
m_ec->setMaterialValue(m_item, value, d);
};
LayerEditorUtils::addVectorToGrid(m_layout, col, mag, setNewValue, true, false);
LayerEditorUtils::addVectorToGrid(m_layout, col, material->magnetization(), setNewValue, true, false);
// -- Create UI for material selection button
auto* btn = new QPushButton("...", this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment