From d3c5c80c4e386833f8eb8ca09e50bc6a7d34aced Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 6 Feb 2014 21:19:12 +0100 Subject: [PATCH] Add elliptical model to set_type() method. --- src/model/GModelSky.cpp | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/src/model/GModelSky.cpp b/src/model/GModelSky.cpp index 30d6383..96d4eef 100644 --- a/src/model/GModelSky.cpp +++ b/src/model/GModelSky.cpp @@ -1151,6 +1151,11 @@ void GModelSky::set_type(void) m_type = "ExtendedSource"; } + // ... otherwise, is spatial model an elliptical source? + else if (dynamic_cast(m_spatial) != NULL) { + m_type = "ExtendedSource"; + } + // ... otherwise we have a diffuse model else { m_type = "DiffuseSource"; -- libgit2 0.21.4