Commit d3c5c80c4e386833f8eb8ca09e50bc6a7d34aced

Authored by Jürgen Knödlseder
1 parent 85a14794

Add elliptical model to set_type() method.

Showing 1 changed file with 5 additions and 0 deletions
src/model/GModelSky.cpp
... ... @@ -1151,6 +1151,11 @@ void GModelSky::set_type(void)
1151 1151 m_type = "ExtendedSource";
1152 1152 }
1153 1153  
  1154 + // ... otherwise, is spatial model an elliptical source?
  1155 + else if (dynamic_cast<const GModelSpatialElliptical*>(m_spatial) != NULL) {
  1156 + m_type = "ExtendedSource";
  1157 + }
  1158 +
1154 1159 // ... otherwise we have a diffuse model
1155 1160 else {
1156 1161 m_type = "DiffuseSource";
... ...