summaryrefslogtreecommitdiffstats
path: root/tksao/frame/grid3d.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-07-04 21:08:18 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-07-04 21:08:18 (GMT)
commit15ba04b1d129807c95c65c7910970e62d0df65b0 (patch)
tree68211735c6bf84173f0e55fd04558633663c83cb /tksao/frame/grid3d.C
parent327a5fa88f1a804b1d6febd300035c59e2b89826 (diff)
downloadblt-15ba04b1d129807c95c65c7910970e62d0df65b0.zip
blt-15ba04b1d129807c95c65c7910970e62d0df65b0.tar.gz
blt-15ba04b1d129807c95c65c7910970e62d0df65b0.tar.bz2
only check astInv() for wcs
Diffstat (limited to 'tksao/frame/grid3d.C')
-rw-r--r--tksao/frame/grid3d.C10
1 files changed, 5 insertions, 5 deletions
diff --git a/tksao/frame/grid3d.C b/tksao/frame/grid3d.C
index 72342c8..8db3f09 100644
--- a/tksao/frame/grid3d.C
+++ b/tksao/frame/grid3d.C
@@ -66,11 +66,6 @@ int Grid3d::doit(RenderMode rm)
if (!fits)
return 1;
-#ifdef NEWWCS
- if (!fits->astInv())
- return 1;
-#endif
-
astClearStatus; // just to make sure
astBegin; // start memory management
@@ -113,6 +108,11 @@ int Grid3d::doit(RenderMode rm)
ast = astFrameSet(cmpwcsbase,"");
astAddFrame(ast, AST__CURRENT, cmpwcsmap, cmpwcscurr);
#else
+ if (!fits->astInv()) {
+ astEnd; // now, clean up memory
+ return 1;
+ }
+
fits->setWCSSkyFrame(system_, sky_);
AstFrameSet* ast = fits->wcsCopy();