From: Simon Rit Date: Thu, 2 Feb 2012 17:05:17 +0000 (+0100) Subject: Previous warning fix introduced a bug. Fixed X-Git-Tag: v1.3.0~104^2~8^2~9 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=214e8fb240af99de593f18965c9542fcf00ac81a;p=clitk.git Previous warning fix introduced a bug. Fixed --- diff --git a/common/clitkXdrImageIOReader.cxx b/common/clitkXdrImageIOReader.cxx index ee3f50b..ea476d7 100644 --- a/common/clitkXdrImageIOReader.cxx +++ b/common/clitkXdrImageIOReader.cxx @@ -760,7 +760,7 @@ int clitk::XdrImageIO::ReadWithError(void * buffer) c = scan_header(file, "field", offset, 1); if (c) { if (memicmp(c, "unifo", 5) == 0) /*field=UNIFORM,*/ coords=nspace*2; - // else if (memicmp(c, "recti", 5) == 0) field=RECTILINEAR; + else if (memicmp(c, "recti", 5) == 0) /*field=RECTILINEAR*/; else if (memicmp(c, "irreg", 5) == 0) /*field=IRREGULAR,*/ coords=total*nspace; else return ER_XDR_FIELD; } else