From 1f6a685c1f17ccc1707888820a26cd21e6c8f4f5 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Thu, 6 Apr 2023 17:47:37 +0200 Subject: [PATCH] inline fct call -> break one dependency on ItemToAxis --- GUI/Model/Device/InstrumentItems.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GUI/Model/Device/InstrumentItems.cpp b/GUI/Model/Device/InstrumentItems.cpp index cef57efb96c..c3caf4cebca 100644 --- a/GUI/Model/Device/InstrumentItems.cpp +++ b/GUI/Model/Device/InstrumentItems.cpp @@ -420,8 +420,10 @@ const ICoordSystem* SpecularInstrumentItem::createCoordSystem() const native_units); } - return new AngularReflectometryCoords(scanItem()->wavelength(), *axis_item->itemToAxis(1.0), - Coords::DEGREES); + FixedBinAxis axis(axis_item->title().toStdString(), axis_item->binCount(), axis_item->min(), + axis_item->max()); + + return new AngularReflectometryCoords(scanItem()->wavelength(), axis, Coords::DEGREES); } ISimulation* SpecularInstrumentItem::createSimulation(const MultiLayer& sample) const -- GitLab