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

pass background to core

parent 1842ce6e
No related branches found
No related tags found
1 merge request!1684Fix background in GUI (#639)
Pipeline #102359 canceled
...@@ -441,7 +441,13 @@ ISimulation* SpecularInstrumentItem::createSimulation(const MultiLayer& sample) ...@@ -441,7 +441,13 @@ ISimulation* SpecularInstrumentItem::createSimulation(const MultiLayer& sample)
std::unique_ptr<Scale> axis = axis_item->itemToAxis(Units::deg, *converted_axis); std::unique_ptr<Scale> axis = axis_item->itemToAxis(Units::deg, *converted_axis);
std::unique_ptr<IBeamScan> scan = createScan(*axis); std::unique_ptr<IBeamScan> scan = createScan(*axis);
return new SpecularSimulation(*scan, sample);
auto* result = new SpecularSimulation(*scan, sample);
if (const auto background = backgroundItem()->createBackground())
result->setBackground(*background);
return result;
} }
void SpecularInstrumentItem::writeTo(QXmlStreamWriter* w) const void SpecularInstrumentItem::writeTo(QXmlStreamWriter* w) const
......
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