summaryrefslogtreecommitdiffstats
path: root/tksao/frame/grid2d.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/grid2d.C')
-rw-r--r--tksao/frame/grid2d.C7
1 files changed, 4 insertions, 3 deletions
diff --git a/tksao/frame/grid2d.C b/tksao/frame/grid2d.C
index c12014a..d92b4d6 100644
--- a/tksao/frame/grid2d.C
+++ b/tksao/frame/grid2d.C
@@ -57,14 +57,15 @@ int Grid2d::doit(RenderMode rm)
break;
default:
{
- AstFrameSet* ast = (AstFrameSet*)astCopy(fits->getAST(system_));
// set desired skyformat
#ifndef NEWWCS
+ AstFrameSet* ast = (AstFrameSet*)astCopy(fits->getAST(system_));
fits->setWCSSkyFrame(ast, sky_);
#else
- fits->setWCSSystem(ast, system_);
- fits->setWCSSkyFrame(ast, sky_);
+ fits->setWCSSystem(system_);
+ fits->setWCSSkyFrame(fits->getAST(system_), sky_);
+ AstFrameSet* ast = (AstFrameSet*)astCopy(fits->getAST(system_));
int naxes = astGetI(ast,"Naxes");
switch (naxes) {