From 65b49c67953fcffda046197bb27d97f66391fb6a Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Mon, 23 May 2022 20:46:13 +0200 Subject: [PATCH] rm comment --- GUI/Model/Device/InstrumentItems.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GUI/Model/Device/InstrumentItems.cpp b/GUI/Model/Device/InstrumentItems.cpp index 998ce397f33..06e693a6ff3 100644 --- a/GUI/Model/Device/InstrumentItems.cpp +++ b/GUI/Model/Device/InstrumentItems.cpp @@ -368,13 +368,10 @@ std::unique_ptr<Instrument> Instrument2DItem::createInstrument() const std::unique_ptr<Instrument> Instrument2DItem::createPolInstrument() const { auto beam = beamItem()->createBeam(); - beam->setPolarization(m_polarization); auto detector = detectorItem()->createDetector(); detector->setDetectorNormal(beam->direction().zReflected()); - // TODO: Why not check "if (withPolarizerAnalyzer())"? But if it is inserted, some of the unit - // tests fail (because in the unit tests this flag is never set to true) - // The Unit test are e.g. TestGuiStd/Std/MagneticCylinders + beam->setPolarization(m_polarization); detector->setAnalyzer(m_analyzerDirection, m_analyzerEfficiency, m_analyzerTotalTransmission); return std::make_unique<Instrument>(*beam, *detector); -- GitLab