diff options
Diffstat (limited to 'tksao/frame/fitsmap.C')
-rw-r--r-- | tksao/frame/fitsmap.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tksao/frame/fitsmap.C b/tksao/frame/fitsmap.C index a1bf5c7..e3eefd6 100644 --- a/tksao/frame/fitsmap.C +++ b/tksao/frame/fitsmap.C @@ -191,7 +191,7 @@ double FitsImage::mapLenFromRef(double dd, Coord::CoordSystem sys, pt1[1] = wyy[1]; double out = astDistance(ast_[ss],pt0,pt1); - if (astWCSIsASkyFrame(astGetFrame(ast_[ss], AST__CURRENT))) { + if (astWCSIsASkyFrame(ast_[ss])) { out = radToDeg(out); switch (dist) { case Coord::DEGREE: @@ -291,7 +291,7 @@ double FitsImage::mapLenToRef(double dd, Coord::CoordSystem sys, AstFrameSet* ast = (AstFrameSet*)astCopy(ast_[ss]); double rdd = dd; - if (astWCSIsASkyFrame(astGetFrame(ast, AST__CURRENT))) { + if (astWCSIsASkyFrame(ast)) { rdd = degToRad(dd); switch (dist) { case Coord::DEGREE: |