summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/fitsy++')
-rw-r--r--tksao/fitsy++/compress.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/tksao/fitsy++/compress.C b/tksao/fitsy++/compress.C
index 96d7715..37d16c2 100644
--- a/tksao/fitsy++/compress.C
+++ b/tksao/fitsy++/compress.C
@@ -15,6 +15,8 @@ FitsCompress::FitsCompress(FitsFile* fits)
width_ = fits->getInteger("ZNAXIS1",0);
height_ = fits->getInteger("ZNAXIS2",0);
depth_ = fits->getInteger("ZNAXIS3",1);
+ if (depth_<1)
+ depth_ =1;
ww_ = fits->getInteger("ZTILE1",width_);
hh_ = fits->getInteger("ZTILE2",1);
dd_ = fits->getInteger("ZTILE3",1);