From: malaterre Date: Mon, 28 Jul 2003 12:21:09 +0000 (+0000) Subject: misplaced return 0.; for ACR/NEMA X-Git-Tag: Version0.3.1~188 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=08da5e420e900f65745402f1453673e89dcd8cdf;p=gdcm.git misplaced return 0.; for ACR/NEMA --- diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index 46838845..d09ff768 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -1,5 +1,5 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.79 2003/07/23 08:43:03 jpr Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.80 2003/07/28 12:21:09 malaterre Exp $ #include #include @@ -2075,8 +2075,8 @@ float gdcmHeader::GetXImagePosition(void) { if (StrImPos == "gdcm::Unfound") { dbg.Verbose(0, "gdcmHeader::GetXImagePosition: unfound Image Position (RET) (0020,0030)"); // How to tell the caller nothing was found ? + return 0.; } - return 0.; } if( sscanf( StrImPos.c_str(), "%f\\%f\\%f", &xImPos, &yImPos, &zImPos) != 3) return 0.; @@ -2099,8 +2099,9 @@ float gdcmHeader::GetYImagePosition(void) { StrImPos = GetPubElValByNumber(0x0020,0x0030); // For ACR-NEMA images if (StrImPos == "gdcm::Unfound") { dbg.Verbose(0, "gdcmHeader::GetYImagePosition: unfound Image Position (RET) (0020,0030)"); + // How to tell the caller nothing was found ? + return 0.; } - return 0.; } if( sscanf( StrImPos.c_str(), "%f\\%f\\%f", &xImPos, &yImPos, &zImPos) != 3) return 0.;