From 08da5e420e900f65745402f1453673e89dcd8cdf Mon Sep 17 00:00:00 2001 From: malaterre Date: Mon, 28 Jul 2003 12:21:09 +0000 Subject: [PATCH] misplaced return 0.; for ACR/NEMA --- src/gdcmHeader.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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.; -- 2.48.1