summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-30 14:12:42 +0000
committerPixel <Pixel>2001-12-30 14:12:42 +0000
commit63d1339b8576c7962ab5d185fbad3fc5b36a6875 (patch)
tree855788f2fffcd2052f847ee79f1a8d4092366bb5 /lib
parent349309cd650c85bcdb4d8256e1aba6d9b90ce6e4 (diff)
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r--lib/Handle.cc4
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;
}
}