From d2f1a719f02398ab9007e4fab5dfe4b4e8a11204 Mon Sep 17 00:00:00 2001
From: Walter Van Herck <w.van.herck@fz-juelich.de>
Date: Wed, 12 Dec 2012 15:34:20 +0100
Subject: [PATCH] Fixed bug in initialization of alpha axis

---
 Core/Algorithms/src/GISASExperiment.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Core/Algorithms/src/GISASExperiment.cpp b/Core/Algorithms/src/GISASExperiment.cpp
index 93426166671..5423d336085 100644
--- a/Core/Algorithms/src/GISASExperiment.cpp
+++ b/Core/Algorithms/src/GISASExperiment.cpp
@@ -139,9 +139,11 @@ void GISASExperiment::setDetectorParameters(size_t n_phi, double phi_f_min, doub
     alpha_params.m_range = TSampledRange<double>(n_alpha, alpha_f_min, alpha_f_max);
     if (isgisaxs_style) {
         phi_params.m_sample_method = AxisParameters::E_ISGISAXS;
+        alpha_params.m_sample_method = AxisParameters::E_ISGISAXS;
     }
     else {
         phi_params.m_sample_method = AxisParameters::E_DEFAULT;
+        alpha_params.m_sample_method = AxisParameters::E_DEFAULT;
     }
     DetectorParameters detector_params = { phi_params, alpha_params };
     setDetectorParameters(detector_params);
-- 
GitLab