From 63d1339b8576c7962ab5d185fbad3fc5b36a6875 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 30 Dec 2001 14:12:42 +0000 Subject: *** empty log message *** --- lib/Handle.cc | 4 ++-- 1 file 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; } } -- cgit v1.2.3