diff options
author | Pixel <Pixel> | 2001-12-30 14:12:42 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-12-30 14:12:42 +0000 |
commit | 63d1339b8576c7962ab5d185fbad3fc5b36a6875 (patch) | |
tree | 855788f2fffcd2052f847ee79f1a8d4092366bb5 | |
parent | 349309cd650c85bcdb4d8256e1aba6d9b90ce6e4 (diff) |
*** empty log message ***
-rw-r--r-- | lib/Handle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index 47be433..f8db7c3 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -204,11 +204,10 @@ void Handle::SetZ(int az) throw (GeneralException) { if (z) { throw GeneralException(_("Can't SetZ a Handle twice.")); } - z = az; if (h < 0) { throw GeneralException(_("Can't SetZ a virtual Handle.")); } - if (z) { + if (az) { char format[4]; int index = 0; if (CanRead()) { @@ -223,6 +222,7 @@ void Handle::SetZ(int az) throw (GeneralException) { if (!(zfile = gzdopen(h, format))) { throw GeneralException(_("Was not able to gzdopen.")); } + z = az; } } |