Commit 4ea8b7a8536d3d313dd5cf59c8ec42ee1db12510
1 parent
681214c5
Set GTIs in GCOMDri::read_attributes() also in case that start on stop times are identical
In case that no superpacket was selected the start and stop times may be zero and identical. To avoid a crash of the code the GTI is also set in this case.
Showing
1 changed file
with
1 additions
and
1 deletions
inst/com/src/GCOMDri.cpp
| ... | ... | @@ -1204,7 +1204,7 @@ void GCOMDri::read_attributes(const GFitsHDU* hdu) |
| 1204 | 1204 | GTime tstop = gammalib::com_time(hdu->integer("VIEDAY"), hdu->integer("VIETIM")); |
| 1205 | 1205 | |
| 1206 | 1206 | // Set Good Time Intervals |
| 1207 | - if (tstop > tstart) { | |
| 1207 | + if (tstop >= tstart) { | |
| 1208 | 1208 | m_gti = GGti(tstart, tstop); |
| 1209 | 1209 | } |
| 1210 | 1210 | ... | ... |