diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-26 19:34:05 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-26 19:34:05 (GMT) |
commit | 46ea56f9a283b53b3b247d05783bd8da74e55d66 (patch) | |
tree | 1142f1e0d231636c239c59f0ab49c136047bd5ee /tksao/frame | |
parent | dbf2b5843e1405035f5b6f8af169916618920806 (diff) | |
download | blt-46ea56f9a283b53b3b247d05783bd8da74e55d66.zip blt-46ea56f9a283b53b3b247d05783bd8da74e55d66.tar.gz blt-46ea56f9a283b53b3b247d05783bd8da74e55d66.tar.bz2 |
if bad map, zero out str
Diffstat (limited to 'tksao/frame')
-rw-r--r-- | tksao/frame/marker.C | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tksao/frame/marker.C b/tksao/frame/marker.C index 9cd3fd8..766496b 100644 --- a/tksao/frame/marker.C +++ b/tksao/frame/marker.C @@ -1409,6 +1409,9 @@ void Marker::listRADEC(FitsImage* ptr, { char buf[64]; ptr->mapFromRef(vv,sys,sky,format,buf); + + ra[0] = '\0'; + dec[0] = '\0'; string x(buf); istringstream wcs(x); wcs >> ra >> dec; @@ -1419,8 +1422,11 @@ void Marker::listRADECPros(FitsImage* ptr, Coord::SkyFrame sky, Coord::SkyFormat format) { char buf[64]; - char decc[32]; ptr->mapFromRef(vv,sys,sky,format,buf); + + char decc[32]; + ra[0] = '\0'; + decc[0] = '\0'; string x(buf); istringstream wcs(x); wcs >> ra >> decc; |