diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-08-09 19:56:06 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-08-09 19:56:06 (GMT) |
commit | 3325fa297dd7950589cf0b396eefc1ec18f8d6bb (patch) | |
tree | eb0aa8f45d21673896cfff91cfb22cd02ae695ab /tksao/frame/basecommand.C | |
parent | 542357f25773a2dcc869a236b9f86d7fb18692b2 (diff) | |
download | blt-3325fa297dd7950589cf0b396eefc1ec18f8d6bb.zip blt-3325fa297dd7950589cf0b396eefc1ec18f8d6bb.tar.gz blt-3325fa297dd7950589cf0b396eefc1ec18f8d6bb.tar.bz2 |
simplify wcs code
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r-- | tksao/frame/basecommand.C | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C index 12fdf17..4233057 100644 --- a/tksao/frame/basecommand.C +++ b/tksao/frame/basecommand.C @@ -2126,9 +2126,9 @@ void Base::getWCSAlignPointerCmd() void Base::getWCSNameCmd(Coord::CoordSystem sys) { if (currentContext->cfits && currentContext->cfits->hasWCS(sys)) { - char* wcsname = (char*)currentContext->cfits->getWCSName(sys); - if (wcsname) { - Tcl_AppendResult(interp, wcsname, NULL); + char* name = (char*)currentContext->cfits->getWCSName(sys); + if (name) { + Tcl_AppendResult(interp, name, NULL); return; } } |